﻿/* ========================================
   Сторінка профілю фахівця
   ======================================== */

/* --- Назад --- */
.sp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0080cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    transition: color 0.2s;
}
.sp-back-link:hover { color: #005fa3; }

/* --- Hero --- */
.sp-hero {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 0;
}
.sp-hero-photo {
    flex-shrink: 0;
    width: 240px;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
}
.sp-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sp-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}
.sp-hero-job {
    font-size: 13px;
    font-weight: 600;
    color: #0080cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #e8f5ff;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
}
.sp-hero-name {
    margin-top: 6px !important;
    margin-bottom: 0;
    font-size: 32px;
}
.sp-hero-desc {
    font-size: 15.5px;
    color: #555;
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
}

/* --- Секції --- */
.sp-section { margin-bottom: 8px; }

/* sub-title — копія з price_list.css (той файл тут не підключений) */
.sp-section .sub-title,
.content-wrapper .sub-title {
    font-size: 17px;
    color: #0077cc;
    border-left: 4px solid #0077cc;
    padding-left: 12px;
    margin-bottom: 20px;
    margin-top: 40px;
    background: none;
    border-radius: 0;
    display: block;
    font-weight: 600;
}

.sp-bio-text {
    font-size: 15.5px;
    color: #444;
    line-height: 1.8;
    margin: 0 0 18px;
}

/* --- Таблиця в стилі price-table (одна колонка) --- */
.sp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 16px;
}
.sp-table thead th {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
    background: none;
}
.sp-table thead th:first-child,
.sp-table tbody td:first-child {
    padding-left: 32px;
}
.sp-table tbody tr {
    background: #fff;
}
.sp-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #333 !important;
    font-size: 16px;
    text-align: left;
}
.sp-table--gap { margin-top: 24px; }

/* --- Теги спеціалізацій --- */
.sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.sp-tag {
    background: #f0f7ff;
    color: #0077cc;
    border: 1px solid #c8e0f7;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* --- Список освіти --- */
.sp-edu-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 20px 0 10px;
}
.sp-edu-label--gap { margin-top: 32px; }

.sp-edu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sp-edu-list li {
    padding: 11px 0 11px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    color: #333 !important;
    line-height: 1.5;
    position: relative;
}
.sp-edu-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #0077cc;
    font-weight: 700;
}

/* --- Адаптив --- */
@media (max-width: 900px) {
    .sp-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
    .sp-hero-photo { width: 200px; height: 250px; }
    .sp-hero-info { align-items: center; }
    .sp-hero-desc { text-align: center; }
    .sp-hero-name { font-size: 26px !important; }
}
@media (max-width: 600px) {
    .sp-hero-name { font-size: 22px !important; }
    .sp-table thead th:first-child,
    .sp-table tbody td:first-child { padding-left: 15px; }
}
