/* ============================================
ВЫБОР СБОРКИ CS 1.6 — стиль под скриншот
============================================ */
.build-picker {
    position: relative;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: #fff;
    margin: 20px 0;
}

/* БАННЕР */
.build-picker__banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1420 0%, #061018 50%, #03060a 100%);
    border: 1px solid rgba(44, 184, 245, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    min-height: 320px;
}

/* ФОНОВАЯ КАРТИНКА СПРАВА */
.build-picker__hero {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52%;
    z-index: 1;
    background-image: url('https://cdn.cs16down.ru/build-picker/build-picker.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
    pointer-events: none;
}

/* Большие цифры 1.6 */
.build-picker__hero::after {
    content: '1.6';
    position: absolute;
    right: 30px;
    bottom: -30px;
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: -10px;
    text-shadow: 0 0 60px rgba(44, 184, 245, 0.15);
    pointer-events: none;
}

/* Дополнительное затемнение */
.build-picker__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(44, 184, 245, 0.1) 0%, transparent 60%),
                linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* КОНТЕНТ СЛЕВА */
.build-picker__content {
    position: relative;
    z-index: 5;
    padding: 24px 32px 32px;
    max-width: 100%;
}

/* Верхняя строка: бейдж + кнопка случайные */
.build-picker__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.build-picker__step-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(44, 184, 245, 0.15);
    border: 1px solid rgba(44, 184, 245, 0.4);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #6ec9ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.build-picker__random-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(44, 184, 245, 0.08);
    border: 1px solid rgba(44, 184, 245, 0.3);
    border-radius: 10px;
    color: #6ec9ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.build-picker__random-btn:hover {
    background: rgba(44, 184, 245, 0.2);
    border-color: rgba(44, 184, 245, 0.7);
    color: #fff;
    box-shadow: 0 0 20px rgba(44, 184, 245, 0.4);
    transform: translateY(-1px);
}

.build-picker__random-btn svg { flex-shrink: 0; }

/* Заголовок */
.build-picker__main-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.build-picker__main-title span {
    background: linear-gradient(135deg, #6ec9ff 0%, #2cb8f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
    font-weight: 800;
}

/* Прогресс-бар */
.build-picker__progress {
    width: 100%;
    max-width: 520px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.build-picker__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e93c5 0%, #2cb8f5 100%);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(44, 184, 245, 0.7);
    position: relative;
}

.build-picker__progress-bar::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: bp-shine 2s linear infinite;
}

@keyframes bp-shine {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Шаги */
.build-picker__steps { margin-bottom: 0; }
.build-picker__step { display: none; }
.build-picker__step--active {
    display: block;
    animation: bp-fadeIn 0.4s ease forwards;
}

@keyframes bp-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.build-picker__question {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #fff;
}

.build-picker__hint {
    font-size: 13px;
    color: #7a92a8;
    margin: 0 0 18px 0;
    font-weight: 500;
}

/* КНОПКИ-КАРТОЧКИ */
.build-picker__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.build-picker__btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: #fff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 68px;
}

.build-picker__btn:hover {
    background: rgba(44, 184, 245, 0.08);
    border-color: rgba(44, 184, 245, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 184, 245, 0.15);
}

/* Иконка */
.build-picker__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(44, 184, 245, 0.15), rgba(44, 184, 245, 0.05));
    border: 1px solid rgba(44, 184, 245, 0.25);
    border-radius: 10px;
    color: #6ec9ff;
    transition: all 0.25s ease;
}

.build-picker__btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Текст */
.build-picker__btn-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.build-picker__btn-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.build-picker__btn-desc {
    font-size: 11px;
    color: #7a92a8;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Галочка (скрыта по умолчанию) */
.build-picker__btn-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

/* АКТИВНАЯ КНОПКА */
.build-picker__btn--selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.build-picker__btn--selected .build-picker__btn-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.build-picker__btn--selected .build-picker__btn-check {
    opacity: 1;
    transform: scale(1);
}

/* РЕЗУЛЬТАТЫ — растянуты на всю ширину баннера */
.build-picker__results {
    margin-top: 24px;
    margin-left: -32px;
    margin-right: -32px;
    padding: 24px 32px 32px;
    border-top: 1px solid rgba(44, 184, 245, 0.15);
    animation: bp-fadeIn 0.5s ease forwards;
    width: calc(100% + 64px);
    box-sizing: border-box;
}

.build-picker__results--hidden { display: none; }

.build-picker__results-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px 0;
    color: #fff;
}

/* Сетка результатов — 7 карточек в ряд на широких экранах */
.build-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.build-picker__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(44, 184, 245, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.build-picker__card:hover {
    transform: translateY(-4px);
    border-color: #2cb8f5;
    box-shadow: 0 12px 30px rgba(44, 184, 245, 0.25);
}

.build-picker__card-link {
    text-decoration: none;
    color: #fff;
    display: block;
}

.build-picker__card-img-wrap {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #061018;
}

.build-picker__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.build-picker__card:hover .build-picker__card-img { transform: scale(1.08); }

.build-picker__card-title {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #e8ecf1;
    text-align: center;
    line-height: 1.35;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.build-picker__card:hover .build-picker__card-title { color: #6ec9ff; }

/* Кнопки действий */
.build-picker__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.build-picker__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 180px;
}

.build-picker__action-btn--more {
    background: rgba(44, 184, 245, 0.1);
    border-color: rgba(44, 184, 245, 0.35);
    color: #6ec9ff;
}

.build-picker__action-btn--more:hover {
    background: rgba(44, 184, 245, 0.2);
    border-color: #2cb8f5;
    color: #fff;
    box-shadow: 0 0 20px rgba(44, 184, 245, 0.4);
    transform: translateY(-2px);
}

.build-picker__action-btn--reset {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.35);
    color: #ff8a8a;
    flex: 0 0 auto;
    min-width: 0;
}

.build-picker__action-btn--reset:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

/* Иконки в кнопках действий */
.btn-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-icon-wrap svg { width: 100%; height: 100%; display: block; }

/* ============================================
АДАПТИВ
============================================ */
@media (max-width: 1024px) {
    .build-picker__content { max-width: 70%; }
    .build-picker__main-title { font-size: 28px; }
    .build-picker__main-title span { font-size: 22px; }
    
    /* На средних экранах — по 5 карточек */
    .build-picker__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .build-picker__banner {
        border-radius: 16px;
        min-height: auto;
    }
    .build-picker__hero {
        width: 100%;
        opacity: 0.25;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%, #000 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 60%, #000 100%);
    }
    .build-picker__hero::after { font-size: 100px; right: 10px; bottom: -10px; }
    .build-picker__content {
        max-width: 100%;
        padding: 18px 18px 22px;
    }
    
    /* На мобильных — results тоже на всю ширину */
    .build-picker__results {
        margin-left: -18px;
        margin-right: -18px;
        padding: 18px 18px 22px;
        width: calc(100% + 36px);
    }
    
    .build-picker__main-title { font-size: 22px; }
    .build-picker__main-title span { font-size: 18px; }
    .build-picker__question { font-size: 17px; }
    .build-picker__hint { font-size: 12px; margin-bottom: 14px; }
    .build-picker__options { grid-template-columns: 1fr; gap: 8px; }
    .build-picker__btn { padding: 10px 12px; min-height: 60px; }
    .build-picker__btn-icon { width: 36px; height: 36px; }
    .build-picker__btn-icon svg { width: 17px; height: 17px; }
    .build-picker__btn-title { font-size: 13px; }
    .build-picker__btn-desc { font-size: 10px; }
    
    /* На мобильных — 2 карточки в ряд */
    .build-picker__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .build-picker__card-img-wrap { height: 90px; }
    .build-picker__card-title { font-size: 11px; padding: 8px; min-height: 52px; }
    .build-picker__action-btn {
        font-size: 12px;
        padding: 10px 16px;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .build-picker__topline { margin-bottom: 12px; }
    .build-picker__random-btn { padding: 6px 10px; font-size: 11px; gap: 5px; }
    .build-picker__random-btn svg { width: 13px; height: 13px; }
    .build-picker__main-title { font-size: 19px; }
    .build-picker__main-title span { font-size: 15px; }
    .build-picker__step-badge { font-size: 10px; padding: 4px 10px; }
    .build-picker__card-img-wrap { height: 75px; }
    .build-picker__card-title { font-size: 10px; }
}

/* ============================================
ОБЩИЕ СТИЛИ СЕКЦИИ ПОДБОРКИ СБОРКИ
============================================ */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    align-items: start;
}

@media (max-width: 1024px) {
    .info-section { grid-template-columns: 1fr; }
}

.info-block {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.info-title {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
ЛЕВЫЙ БЛОК: ТАБЛИЦА
============================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

.builds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.builds-table thead { background-color: #27293d; }

.builds-table th {
    padding: 14px 12px;
    text-align: left;
    color: var(--color-white);
    font-weight: 600;
    border-bottom: 2px solid #3a4058;
    white-space: nowrap;
}

.builds-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #2a2f45;
    vertical-align: middle;
}

.builds-table tbody tr { transition: background-color 0.3s ease; }
.builds-table tbody tr:hover { }
.builds-table tbody tr:last-child td { border-bottom: none; }

.build-name {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.build-name:hover {
    color: var(--a-color);
    text-decoration: underline;
}

.btn-download {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--btn-default-background-2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download:hover {
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ============================================
ПРАВЫЙ БЛОК: FAQ АККОРДЕОН
============================================ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion .accordion-item {
    background-color: #f0eef8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.faq-accordion .accordion-item.active {
    border-color: #4a9eff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.faq-accordion .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-accordion .accordion-header:hover { background-color: #fff; }

.faq-accordion .acc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.faq-accordion .acc-icon {
    width: 24px;
    height: 24px;
    color: #4a9eff;
    flex-shrink: 0;
}

.faq-accordion .acc-icon svg { width: 100%; height: 100%; }

.faq-accordion .acc-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.faq-accordion .acc-toggle {
    color: #4a9eff;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.faq-accordion .acc-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-accordion .accordion-item.active .acc-toggle .arrow {
    transform: rotate(180deg);
}

.faq-accordion .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: var(--body-background);
}

.faq-accordion .accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 0 20px 0 20px;
}

.faq-accordion .accordion-body-inner {
    font-size: 14px;
    line-height: 1.7;
    padding: 10px;
}

.faq-accordion .accordion-body-inner p { margin: 0; }
.faq-accordion .accordion-body-inner strong { color: #e8ecf1; }

.faq-accordion .accordion-body-inner code {
    background-color: #1a1d2e;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #4a9eff;
}

/* ============================================
АДАПТИВНОСТЬ
============================================ */
@media (max-width: 768px) {
    .info-block { padding: 20px; }
    .info-title { font-size: 18px; }
    .builds-table { font-size: 13px; }
    .builds-table th, .builds-table td { padding: 10px 8px; }
    .faq-accordion .accordion-header { padding: 14px 16px; }
    .faq-accordion .acc-text { font-size: 14px; }
}

/* Только для кнопок с иконками */
/* Обёртка фиксирует размер иконки */
.btn-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
    margin-right: 6px;
}

/* SVG заполняет обёртку, но не выходит за её пределы */
.btn-icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Кнопка — flex, чтобы иконка и текст были в одну строку по центру */
.build-picker__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.build-picker__card-title:hover { text-decoration: underline; }
#bp-current-step { padding: 0 3px; }