/* ── Общие ── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #222;
    background: #f5f5f5;
}

/* ── Табы ── */
.tab-content {
    display: none;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin: 20px auto;
    max-width: 960px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 22px;
    color: #1F4E79;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D6E4F0;
}

/* ── Шаги ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.step-number {
    min-width: 40px;
    height: 40px;
    background: #1F4E79;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.step-text h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: #1F4E79;
}

.step-text p {
    color: #555;
    margin-bottom: 12px;
}

/* ── Кнопка скачать ── */
.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background: #1F4E79;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.btn-download:hover {
    background: #2E75B6;
}

/* ── Форма ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    font-weight: bold;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 420px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E75B6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    color: #c00;
    font-size: 12px;
}

/* ── Кнопка отправить ── */
.btn-submit {
    padding: 10px 28px;
    background: #1F4E79;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #2E75B6;
}


/* ── Таблица товаров ── */
.chosen-product {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.product-table th {
    text-align: left;
    padding: 7px 8px;
    background: #1F4E79;
    color: #fff;
    font-size: 12px;
}

.product-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.product-table tr:hover {
    background: #f0f7ff;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.pagination a {
    padding: 8px 16px;
    background: #1F4E79;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.pagination a:hover {
    background: #2E75B6;
}

.pagination span {
    font-size: 14px;
    color: #555;
}

/* ── Фильтры сортировки ── */
/* ── Фильтры сортировки ── */
.filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter select {
    appearance: none;
    background-color: #f4f4f4;
    color: #1F4E79;
    border: 1px solid #D6E4F0;
    border-radius: 6px;
    padding: 7px 36px 7px 14px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.15s;
}

.filter select:hover {
    background-color: #D6E4F0;
}

.filter select:focus {
    border-color: #1F4E79;
}

.seller-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px dashed #999;
}

.seller-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    white-space: nowrap;
    z-index: 100;
    font-size: 13px;
    color: #222;
    min-width: 180px;
}

.seller-tooltip p {
    margin: 4px 0 0 0;
    color: #555;
}

.seller-wrap:hover .seller-tooltip {
    display: block;
}

.steel-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.steel-filter-label {
    font-size: 12px;
    color: #666;
    margin-right: 4px;
}

.steel-tag {
    padding: 4px 10px;
    background: #f4f4f4;
    border: 1px solid #D6E4F0;
    border-radius: 4px;
    text-decoration: none;
    color: #1F4E79;
    font-size: 12px;
    transition: background 0.15s;
}

.steel-tag:hover {
    background: #D6E4F0;
}

.steel-tag.active {
    background: #1F4E79;
    color: #fff;
    border-color: #1F4E79;
}