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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок прототипа */
.prototype-header {
    background: linear-gradient(135deg, #1B5E3E 0%, #2d8a5e 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.prototype-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.prototype-header p {
    opacity: 0.9;
    font-size: 16px;
}

/* Секция */
.section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.section-title {
    color: #1B5E3E;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #1B5E3E;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    padding-left: 14px;
}

.location-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #1B5E3E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

/* ====== БЛОК 1: ЭКСПЕРТ НА СТРАНИЦЕ СТАТЬИ ====== */
.expert-block {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5ec 100%);
    border: 1px solid #c8e6cf;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 0 15px;
}

.expert-photo {
    flex-shrink: 0;
}

.expert-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1B5E3E;
    box-shadow: 0 4px 12px rgba(27, 94, 62, 0.2);
}

.expert-info {
    flex: 1;
}

.expert-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1B5E3E;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.expert-label svg {
    width: 14px;
    height: 14px;
}

.expert-name {
    font-size: 20px;
    font-weight: 600;
    color: #1B5E3E;
    margin-bottom: 4px;
}

.expert-name a {
    color: inherit;
    text-decoration: none;
}

.expert-name a:hover {
    text-decoration: underline;
}

.expert-position {
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
}

.expert-experience {
    color: #777;
    font-size: 14px;
    margin-bottom: 16px;
}

.expert-experience strong {
    color: #1B5E3E;
}

.expert-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1B5E3E;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.expert-cta:hover {
    background: #2d8a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 62, 0.3);
}

.expert-cta svg {
    width: 16px;
    height: 16px;
}

/* ====== БЛОК 2: ПУБЛИКАЦИИ НА СТРАНИЦЕ ВРАЧА ====== */
.publications-block {
    background: #fff;
}

.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.publications-title {
    font-size: 24px;
    font-weight: 600;
    color: #1B5E3E;
}

.publications-link {
    color: #1B5E3E;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.publications-link:hover {
    text-decoration: underline;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.publication-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #1B5E3E;
}

.publication-image {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-role {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(27, 94, 62, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.publication-role.author {
    background: rgba(27, 94, 62, 0.9);
}

.publication-role.expert {
    background: rgba(45, 138, 94, 0.9);
}

.publication-content {
    padding: 16px;
}

.publication-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-date {
    font-size: 12px;
    color: #888;
}

/* ====== SCHEMA MARKUP PREVIEW ====== */
.schema-preview {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.schema-preview pre {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.schema-preview .key {
    color: #9cdcfe;
}

.schema-preview .string {
    color: #ce9178;
}

.schema-preview .type {
    color: #4ec9b0;
}

/* Responsive */
@media (max-width: 768px) {
    .expert-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .publications-grid {
        grid-template-columns: 1fr;
    }
}

/* Notes */
.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.note-title {
    font-weight: 600;
    margin-bottom: 4px;
}