/* ============================================================
   Стили для страницы технической информации о процессорах
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background-color: #eef3f8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    margin: 0;
}

.service-card {
    max-width: 1400px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.service-card:hover {
    box-shadow: 0 30px 55px -12px rgba(0, 0, 0, 0.25);
}

.service-header {
    background: linear-gradient(105deg, #124c66 0%, #1f6e8c 100%);
    padding: 2rem 3rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.service-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    color: #ffffff;
}
.service-header p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

.service-content {
    padding: 2rem 2.5rem 2.5rem;
}

/* Табы – с выравниванием по центру и кнопкой справа */
.tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #d4e2ec;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}
.tabs-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tab-button {
    background: none;
    border: none;
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: #5c7f8c;
    border-radius: 2rem 2rem 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border-bottom: 3px solid transparent;
    font-family: inherit;
}
.tab-button:hover {
    background: #eef3f8;
    color: #0f3b4f;
}
.tab-button.active {
    color: #1d6f8b;
    border-bottom-color: #1d6f8b;
    background: #f8fafc;
}

/* Кнопка сброса – овальная, аккуратная */
.btn-reset {
    background: transparent;
    border: 1.5px solid #1d6f8b;
    color: #1d6f8b;
    padding: 0.4rem 1.4rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-reset:hover {
    background: #1d6f8b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 111, 139, 0.25);
}
.btn-reset:active {
    transform: scale(0.96);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Таблица – адаптивная */
.table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid #e2edf2;
    background: #fff;
}

table.processor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
    word-break: break-word;
}
table.processor-table thead {
    background: #f8fafc;
}
table.processor-table th {
    text-align: left;
    padding: 0.6rem 0.4rem;
    font-weight: 600;
    color: #0f3b4f;
    border-bottom: 1.5px solid #d4e2ec;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 2;
}
table.processor-table td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid #e2edf2;
    vertical-align: middle;
}
table.processor-table tbody tr:hover {
    background: #fafcff;
}
table.processor-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ширина колонок (примерная) */
table.processor-table th:nth-child(1),
table.processor-table td:nth-child(1) { width: 18%; }
table.processor-table th:nth-child(2),
table.processor-table td:nth-child(2) { width: 6%; }
table.processor-table th:nth-child(3),
table.processor-table td:nth-child(3) { width: 8%; }
table.processor-table th:nth-child(4),
table.processor-table td:nth-child(4) { width: 8%; }
table.processor-table th:nth-child(5),
table.processor-table td:nth-child(5) { width: 7%; }
table.processor-table th:nth-child(6),
table.processor-table td:nth-child(6) { width: 7%; }
table.processor-table th:nth-child(7),
table.processor-table td:nth-child(7) { width: 10%; }
table.processor-table th:nth-child(8),
table.processor-table td:nth-child(8) { width: 8%; }
table.processor-table th:nth-child(9),
table.processor-table td:nth-child(9) { width: 7%; }
table.processor-table th:nth-child(10),
table.processor-table td:nth-child(10) { width: 8%; }

/* Строка фильтров – овальные поля */
.filter-cell {
    padding: 0.35rem 0.3rem !important;
    background: #f9fcfe;
    border-bottom: 2px solid #d4e2ec;
    vertical-align: middle;
}
.filter-cell input,
.filter-cell select {
    width: 100%;
    padding: 0.45rem 0.8rem;
    border: 1.5px solid #d4e2ec;
    border-radius: 40px;
    font-size: 0.8rem;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    min-height: 34px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.filter-cell input:focus,
.filter-cell select:focus {
    border-color: #1d6f8b;
    box-shadow: 0 0 0 4px rgba(29, 111, 139, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.filter-cell input::placeholder {
    color: #b0c8d4;
    font-size: 0.75rem;
    font-weight: 400;
}
.filter-cell select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%236b8fa0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px 8px;
    padding-right: 2rem;
}
.filter-cell select option {
    font-size: 0.8rem;
    padding: 0.2rem;
}

/* Сообщение "ничего не найдено" */
.no-results {
    padding: 2rem;
    text-align: center;
    color: #5c7f8c;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Футер */
.footer-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d4e2ec;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    font-size: 0.9rem;
    color: #5c7f8c;
}
.footer-info .links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
}
.footer-info .links a {
    color: #1d6f8b;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}
.footer-info .links a:hover {
    text-decoration: underline;
}

/* Счётчик в футере */
#footer-counter {
    font-weight: 600;
    color: #1d6f8b;
    background: #eef3f8;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ===== Адаптивность ===== */
@media (max-width: 992px) {
    .service-content { padding: 1.5rem 1.2rem 2rem; }
    .service-header { padding: 1.5rem 1.5rem; }
    .service-header h1 { font-size: 1.8rem; }
    table.processor-table { font-size: 0.75rem; }
    table.processor-table th, table.processor-table td { padding: 0.3rem 0.3rem; }
    .filter-cell input, .filter-cell select { font-size: 0.7rem; padding: 0.3rem 0.6rem; min-height: 28px; border-radius: 30px; }
}
@media (max-width: 768px) {
    body { padding: 1rem 0.5rem; }
    .service-card { border-radius: 1.5rem; }
    .service-header h1 { font-size: 1.4rem; }
    .service-header p { font-size: 0.95rem; }
    .tabs { justify-content: center; }
    .tabs-left { justify-content: center; }
    .tab-button { padding: 0.4rem 1.2rem; font-size: 0.9rem; }
    .btn-reset { padding: 0.3rem 1rem; font-size: 0.8rem; }
    table.processor-table { font-size: 0.7rem; }
    table.processor-table th, table.processor-table td { padding: 0.25rem 0.2rem; }
    .filter-cell { padding: 0.15rem 0.15rem !important; }
    .filter-cell input, .filter-cell select { font-size: 0.6rem; padding: 0.2rem 0.4rem; min-height: 24px; border-radius: 20px; }
    .footer-info { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 480px) {
    .service-header h1 { font-size: 1.2rem; }
    .tab-button { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .btn-reset { font-size: 0.7rem; padding: 0.2rem 0.8rem; }
    table.processor-table { font-size: 0.6rem; }
    table.processor-table th, table.processor-table td { padding: 0.15rem 0.1rem; }
    .service-content { padding: 0.8rem 0.3rem 1rem; }
    .filter-cell input, .filter-cell select { font-size: 0.5rem; padding: 0.1rem 0.3rem; min-height: 20px; border-radius: 16px; }
}