* {
    box-sizing: border-box;
    color: #555;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0px;
    margin: 30px 0px 0px 0px;
}

a {
    color: #555;
}

.container {
    text-align: center;
    max-width: 750px;
}

#links {
    justify-content: center; /* Centers horizontally */
    align-items: center;
    margin-bottom: 40px;
}

.photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card {
    text-align: left;
    margin-bottom: 40px;
    padding: 0 20px;
}

.header {
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
    color: #000;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px auto;
    padding-bottom: 20px;
}

.description-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin: 10px auto;
}

ul.description {
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.ext-link {
    display: inline-block;
    width: 200px;
    padding: 12px 30px;
    margin-bottom: 5px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.ext-link-telegram {
    background-color: #68804D;
}

.ext-link-telegram:hover {
    background: #C8D5B9;
}

.ext-link-max {
    background-color: #68807D;
}

.ext-link-max:hover {
    background: #C8D5D9;
}

.ext-link-resume {
    background-color: #519072;
}

.ext-link-resume:hover {
    background: #8FC0A9;
}

.ext-link-linkedin {
    background: #2A504E;
}

.ext-link-linkedin:hover {
    background-color: #68B0AB;
}

.interview {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.interview .video-js {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: #FFFFFF;
}

.github-project {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    margin: 10px auto;
    padding-bottom: 20px;
}

.github-project-icon {
    flex-shrink: 0;
}

.github-project-text {
    font-size: 16px;
    line-height: 1.6;
}

.video-bg-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-bg {
    display: block;
    width: 100%;
    height: auto;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Responsive for mobile horizontal */
@media (max-height: 360px) {
    body {
        padding: 0px;
    }

    .photo {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .name {
        font-size: 28px;
        font-weight: 500;
    }
}

/* Responsive for mobile vertical */
@media (max-width: 768px) {
    body {
        padding: 10px;
        display: block;
    }

    .container {
        margin-top: 20px;
    }

    .photo {
        width: 180px;
        height: 180px;
        margin-bottom: 15px;
    }

    .name {
        font-size: 28px;
        font-weight: 500;
    }

    .ext-link {
        padding: 8px 15px;
        font-size: 14px;
        display: inline-block;
        margin-bottom: 10px;
    }
}
/* --------------------------------------------------------------------- */
/* Резюме на главной. Добавлено 11.09.2026 вместе с переносом резюме.     */
/* Документной типографики здесь нет намеренно: лист A4 и поля в          */
/* миллиметрах живут в печатной версии, а сайт остаётся сайтом.           */
/* --------------------------------------------------------------------- */

/* Шапка: фото круглое и по центру, как было; под ним должность и строка
   специализаций. Двухколоночную шапку печатного резюме сюда не тащим --
   центрированная шапка и есть лицо этого сайта. */
.cv-header {
    margin-bottom: 40px;
}

.cv-header .photo {
    margin-bottom: 20px;
}

.cv-header .header {
    text-align: center;
    margin-bottom: 6px;
}

.cv-role {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.cv-tagline {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Заголовки разделов отделены линией: разделов стало восемь, и без деления
   страница читается как одно полотно. */
.info-card .header {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #e6e6e6;
}

.info-card > .header:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.achievements,
.contacts {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px auto 20px;
}

.achievements {
    padding-left: 1rem;
}

.achievements li {
    margin-bottom: 10px;
}

/* Стек: пары «что -- чем». На узком экране определение уходит под термин,
   на широком стоит рядом -- иначе термины ломаются по слогам. */
.stack {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px auto 20px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 8px 16px;
}

.stack dt {
    font-weight: 600;
    color: #333;
}

.stack dd {
    margin: 0;
}

/* Контакты: иконка линейная, цветом текста (currentColor), фирменных
   логотипов нет намеренно. */
.contacts {
    list-style: none;
    padding-left: 0;
}

.contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-ico {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #777;
}

/* Место работы. Период -- отдельной строкой над должностью: на сайте
   ширина 750 px, и вынос периода в колонку сжал бы текст. */
.job {
    margin-bottom: 32px;
}

.job-period {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

.job .description {
    padding-bottom: 0;
    margin-bottom: 10px;
}

.job .result strong {
    color: #333;
}

.job-figure {
    margin: 16px 0 0;
}

.job-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.job-figure figcaption {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
    color: #777;
}

.education {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .stack {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .stack dd {
        margin-bottom: 10px;
    }

    .stack dt {
        margin-top: 6px;
    }
}

/* Печать страницы. Это НЕ документная типографика: листа A4 и полей в
   миллиметрах здесь нет -- они живут в отдельной печатной версии резюме
   (Igor_Askarov_CV.pdf). Скрыто только экранное: проигрыватели печатаются
   чёрными прямоугольниками, нижняя плашка съедает целую страницу, а кнопка
   на бумаге не нажимается. */
@media print {
    .interview,
    .video-bg-section,
    #links {
        display: none;
    }

    body {
        margin: 0;
    }

    .job,
    .contact {
        break-inside: avoid;
    }
}
