/* Вынесено из инлайна detail-specialist.css для кэширования (P2 SEO/CWV) */
/* ============================================
   Specialist Detail Page - Newspaper Style
   ============================================ */

.specialist-page {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero Section */
.specialist-hero {
    background: linear-gradient(135deg, #3a5a7c 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 60px 20px 80px;
    position: relative;
}

.specialist-hero__container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.specialist-hero__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 0.875rem;
}

.specialist-hero__breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.specialist-hero__breadcrumbs a:hover {
    color: #ffffff;
}

.specialist-hero__breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

.specialist-hero__profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.specialist-hero__photo {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.specialist-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-hero__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.specialist-hero__info {
    flex: 1;
}

.specialist-hero__niche {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.specialist-hero__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.2;
}

.specialist-hero__description {
    font-size: 1.0625rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0 0 20px;
}

.specialist-hero__rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.specialist-hero__stars {
    display: flex;
    gap: 3px;
}

.specialist-hero__stars i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.specialist-hero__stars i.filled {
    color: #f5a623;
}

.specialist-hero__rating-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.specialist-hero__reviews {
    font-size: 0.9375rem;
    opacity: 0.7;
}

.specialist-hero__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialist-hero__city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.8125rem;
}

.specialist-hero__city i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Content Layout */
.specialist-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.specialist-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

/* Main Content */
.specialist-main {
    min-width: 0;
}

.specialist-section {
    margin-bottom: 50px;
}

.specialist-section:last-child {
    margin-bottom: 0;
}

.specialist-section__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}

.specialist-section__content {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.85;
}

.specialist-section__content p {
    margin: 0 0 1.25em;
}

.specialist-section__content p:last-child {
    margin-bottom: 0;
}

/* Certificates List */
.certificates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certificates-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #444;
}

.certificates-list li:last-child {
    border-bottom: none;
}

.certificates-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3a5a7c;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-mini {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.article-mini:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.article-mini__date {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 8px;
}

.article-mini__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.article-mini__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-mini__title a:hover {
    color: #3a5a7c;
}

.article-mini__excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.articles-more {
    margin-top: 20px;
}

.articles-more__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.articles-more__link:hover {
    gap: 12px;
    color: #3a5a7c;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 24px;
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-card__author {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.review-card__stars {
    display: flex;
    gap: 2px;
}

.review-card__stars i {
    font-size: 0.875rem;
    color: #ddd;
}

.review-card__stars i.filled {
    color: #f5a623;
}

.review-card__text {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 12px;
}

.review-card__date {
    font-size: 0.8125rem;
    color: #888;
}

/* Sidebar */
.specialist-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 24px;
}

.sidebar-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
}

/* Contact Card */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.contact-item:first-of-type {
    padding-top: 0;
}

.contact-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item__icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a5a7c;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contact-item__link {
    color: #1a1a1a;
    font-size: 0.9375rem;
    text-decoration: none;
    word-break: break-all;
}

.contact-item__link:hover {
    color: #3a5a7c;
}

/* Social Card */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link--telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.social-link--instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link--vk {
    background: #4a76a8;
}

.social-link--facebook {
    background: #1877f2;
}

/* CTA Card — светлый блок в стилистике сайта */
.cta-card {
    background: #f4f7fb;
    color: #1a1a1a;
    border: 1px solid #e8edf2;
}

.cta-card .sidebar-card__title {
    color: #1a1a1a;
}

.cta-card__text {
    font-size: 0.875rem;
    color: #5b6675;
    line-height: 1.5;
    margin: 0 0 20px;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.cta-btn:last-child {
    margin-bottom: 0;
}

.cta-btn--primary {
    background: #3a5a7c;
    color: #ffffff;
}

.cta-btn--primary:hover {
    background: #2c4660;
}

.cta-btn--outline {
    background: #ffffff;
    color: #3a5a7c;
    border: 1px solid #cdd9e6;
}

.cta-btn--outline:hover {
    background: #eef3f9;
    border-color: #3a5a7c;
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
}

.stat-item__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.stat-item__label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 900px) {
    .specialist-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specialist-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .specialist-hero {
        padding: 40px 15px 60px;
    }

    .specialist-hero__profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
    
    .specialist-hero__photo {
        width: 140px;
        height: 140px;
    }
    
    .specialist-hero__name {
        font-size: 1.75rem;
    }
    
    .specialist-hero__cities {
        justify-content: center;
    }
    
    .specialist-content {
        padding: 40px 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Форма «Оставить отзыв» (звёзды-ввод без JS) ===== */
.review-form { max-width: 640px; }
.review-form__field { margin-bottom: 16px; }
.review-form__label { display: block; font-size: .875rem; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.review-form input[type="text"],
.review-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cdd9e6; border-radius: 8px;
    font-size: .9375rem; color: #1a1a1a; background: #fff; font-family: inherit; box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus { outline: none; border-color: #3a5a7c; box-shadow: 0 0 0 3px rgba(58,90,124,.12); }
.review-form textarea { resize: vertical; min-height: 96px; }
.review-form__btn {
    display: inline-block; background: #3a5a7c; color: #fff; font-weight: 700; font-size: 1rem;
    padding: 13px 28px; border: none; border-radius: 10px; cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.review-form__btn:hover { background: #2c4660; transform: translateY(-1px); }
.review-form__errors,
.review-form .errorlist {
    list-style: none; margin: 0 0 12px; padding: 10px 14px; background: #fdeaea; border: 1px solid #f5c2c2;
    border-radius: 8px; color: #b3261e; font-size: .875rem;
}
.review-form__field .errorlist { margin: 6px 0 0; padding: 0; background: none; border: none; }

/* honeypot — спрятать от людей */
.review-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-field { display: none !important; }

/* Звёзды-ввод: DOM-порядок 5→1 + row-reverse → визуально 1..5 слева направо */
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { font-size: 1.9rem; line-height: 1; color: #dbe2ea; cursor: pointer; transition: color .15s ease; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f5a623; }
.star-rating input:focus-visible + label { outline: 2px solid #3a5a7c; outline-offset: 2px; border-radius: 4px; }

/* Успех отправки отзыва */
.review-success {
    background: #eef7f0; border: 1px solid #cce8d4; border-radius: 12px; padding: 18px 20px;
    color: #1a1a1a; font-size: 1.0625rem;
}
.review-success i { color: #1f9d57; margin-right: 8px; }
