/* Базовые сбросы и переменные */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;      /* синий акцент */
    --primary-dark: #1e40af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --border-light: #e2e8f0;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --radius: 24px;
    --radius-sm: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #f1f5f9 0%, #e6edf5 100%);
    color: var(--text-dark);
    line-height: 1.5;
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 2rem 2rem 1.5rem 2rem;
}

/* Шапка */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 128px;
    height: 128px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.bio {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* Контактная панель (кнопки) */
.contact-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    transition: all 0.2s ease;
    background: var(--bg-light);
}

.contact-link i {
    color: var(--primary);
    font-size: 1rem;
}

.contact-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.contact-link:hover i {
    color: white;
}

/* Сетка 2 колонки */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Секции */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section h2 i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Timeline (опыт, образование) */
.timeline-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px dashed var(--border-light);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Навыки (теги) */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--bg-light);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Кастомный список (качества) */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    margin-bottom: 0.7rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-gray);
}

.custom-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Кнопка скачивания */
.download-section {
    text-align: center;
    margin: 2rem 0 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.small-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.8rem;
}

/* Футер */
.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Адаптивность */
@media (max-width: 800px) {
    .container {
        padding: 1.5rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-bar {
        flex-direction: column;
        align-items: center;
    }
    .footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }
    .badge {
        font-size: 0.8rem;
    }
    .btn-download {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Блок "О себе" */
.about-section {
    margin: 2rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f0fa 100%);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.about-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-section h2 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Адаптация для телефонов */
@media (max-width: 768px) {
    .about-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .about-section h2 {
        font-size: 1.2rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
}

/* Секция водительских прав */
.driver-note {
    margin-top: 0.8rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.driver-note small {
    display: block;
}

.skill-tag i {
    margin-right: 5px;
}

/* Блок условий работы */
.work-conditions {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.condition-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.condition-item:last-child {
    border-bottom: none;
}

.condition-item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
}

.condition-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.condition-text {
    flex: 1;
}

.condition-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.condition-text span {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .condition-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .condition-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .condition-text strong {
        font-size: 0.8rem;
    }
    
    .condition-text span {
        font-size: 0.85rem;
    }
}

.testimonial {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.testimonial-author {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Кнопка печати */
.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #475569;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-left: 1rem;
}

.btn-print:hover {
    background: #334155;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Адаптив для телефонов */
@media (max-width: 600px) {
    .btn-print {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .download-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

