.account-details {
    display: flex;
    align-items: stretch; /* растягивает оба блока до одинаковой высоты */
    gap: 2rem;
    margin-top: 1rem;
}

.account-list {
    padding-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 15px;
    justify-content: space-between;
}

.account-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
    /* max-width: 15rem; */
}

.account-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.account-card h3 {
    /* font-size: 1.2rem; */
    color: #333333;
    margin-bottom: 0.5rem;
}

.account-card p {
    /* font-size: 0.9rem; */
    margin-bottom: 0.5rem;
}

.specifications .rank-img {
    margin: 0 0 0.5rem;
}

.specifications {
    max-width: 70%;
}

.unit-list {
    overflow: hidden;
    overflow-y: scroll;
    height: 300px;
    width: 50%;
}

.unit-list img {
    max-height: fit-content;
}

.left-section,
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* важно для правильного расчёта flex внутри */
}

.left-section .info-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.right-section h2 {
    text-align: center;
}

.rank-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.unit-list {
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
}

.unit-list div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    text-align: center;
    color: #444;
}

.unit-list img {
    /* width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.25rem; */
    width: 75px;
    height: 100%;
    object-fit: contain;
    margin-bottom: 0.25rem;

}

.price-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.description ul {
    padding-left: 1rem;
    list-style-type: disc;
}

.filter-modern {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-modern h2 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: #333;
}

.count-badge {
    display: inline-block;
    background-color: #3966E0;
    color: #fff;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

.filter-item label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #444;
}

.filter-item select {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.4rem;
}