@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.theme-animated,
body,
.theme-toggle,
.external-link,
.download-btn,
footer {
    transition:
        background-color 0.5s ease,
        color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

:root {
    --primary-color: #000000;
    --secondary-color: #0056ce;
    --accent-color: #0021db;
    --light-bg: #ecf0f1;
    --text-color: #000000;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --soft-bg: #f3f3f3;
    --scroll-bg: rgba(0, 86, 206, 0.3);
    --scroll-thumb: #0056ce;
    --section-sidebar-width: 285px;
}

.dark-theme {
    --primary-color: #ffffff;
    --secondary-color: #5e9eff;
    --accent-color: #7aa9ff;
    --text-color: #ffffff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --soft-bg: #2a2a2a;
    --box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    --scroll-bg: rgba(94, 158, 255, 0.3);
    --scroll-thumb: #5e9eff;
}

@media (min-width: 769px) and (max-width: 1100px) {
    :root {
        --section-sidebar-width: 230px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: -0.01em;
    padding: 10px 20px 40px;
    min-height: 100vh;
    font-size: 1rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #eaf4fe 0%, #afcdff 100%);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body:not(.dark-theme)::before {
    opacity: 1;
}

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--scroll-bg);
    z-index: 9999;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--scroll-thumb);
    transition: width 0.15s ease;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.top-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    align-items: center;
}

.top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    box-shadow: var(--box-shadow);
}

.top-btn:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

@media (max-width: 1899px) {
    .top-buttons {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .top-btn,
    .theme-toggle {
        width: auto;
        text-align: center;
    }
}

@media (max-width: 1589px) {
    .top-buttons {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .top-btn,
    .theme-toggle {
        width: auto;
        min-width: 50px;
        padding: 10px;
        font-size: 0;
        position: relative;
    }

    .top-btn::before,
    .theme-toggle::before {
        font-size: 18px;
        display: block;
        line-height: 1;
    }

    .top-btn[href*="donntu.ru"]::before {
        content: "🎓";
    }

    .top-btn[href*="masters.donntu.ru"]::before {
        content: "📚";
    }
}

@media (max-width: 1295px) {
    .top-buttons {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin: 0 auto 30px;
        padding: 0 20px;
        z-index: auto;
        top: auto;
        right: auto;
    }

    .top-btn,
    .theme-toggle {
        width: auto;
        height: 40px;
        padding: 10px 18px;
        font-size: 14px;
        min-width: 120px;
        text-align: center;
    }

    .top-btn::before,
    .theme-toggle::before {
        display: none;
    }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 16px;
    box-shadow: var(--box-shadow);
}

.theme-toggle-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.main-nav {
    background: var(--card-bg);
    padding: 10px 0;
    border-radius: 999px;
    box-shadow: var(--box-shadow);
    margin: 20px auto 30px;
    position: sticky;
    top: 16px;
    z-index: 100;
    max-width: 1200px;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0 20px;
    margin: 0;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 26px;
    border-radius: 999px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-align: center;
    background: transparent;
    border: 2px solid transparent;
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.main-nav a.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    font-weight: 700;
}

.header {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    border-left: 6px solid var(--secondary-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.photo-container img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;

    object-position: 50% 15%;

    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-container img:hover {
    transform: scale(1.03);
}

.info-container {
    flex: 1;
    min-width: 300px;
}

.info-container h1 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-container p {
    font-size: 1.1rem;
    margin: 5px 0;
    color: var(--text-color);
}

.info-container .theme {
    background: var(--soft-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    font-weight: 500;
    border-left: 4px solid var(--accent-color);
    line-height: 1.5;
    font-size: 1.15rem;
}

.resume-section,
.soft-skills,
.achievements {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 30px;
    overflow: hidden;
}

.section-content {
    font-size: 1.2rem;
}

.js-scroll-anim .resume-section,
.js-scroll-anim .soft-skills,
.js-scroll-anim .achievements {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-anim .resume-section.visible,
.js-scroll-anim .soft-skills.visible,
.js-scroll-anim .achievements.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .js-scroll-anim .resume-section,
    .js-scroll-anim .soft-skills,
    .js-scroll-anim .achievements {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (min-width: 769px) {

    .resume-section,
    .soft-skills,
    .achievements {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        padding: 25px;
        position: relative;
    }

    .resume-section::before,
    .soft-skills::before,
    .achievements::before {
        content: '';
        position: absolute;
        top: 24px;
        bottom: 24px;
        width: 3px;
        background: var(--secondary-color);
        border-radius: 2px;
        opacity: 0.3;
        left: calc(25px + var(--section-sidebar-width) + 15px);
    }

    .section-header {
        width: var(--section-sidebar-width);
        flex-shrink: 0;
        text-align: center;
    }

    .section-content {
        flex: 1;
        min-width: 0;
        margin: 10px;
    }
}

.section-header {
    position: relative;
}

.collapsible .section-header {
    cursor: pointer;
}

.section-header .section-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: rgba(0, 86, 206, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.6rem;
    line-height: 1;
    margin: 15px auto 15px;
}

.section-icon--large {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: rgba(0, 86, 206, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-icon--large img {
    width: 90px;
    height: 90px;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .section-icon--large {
        width: 90px;
        height: 90px;
        border-radius: 22px;
    }

    .section-icon--large img {
        width: 70px;
        height: 70px;
    }
}

.section-header .section-icon img:not(.theme-toggle-icon) {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--primary-color);
    word-break: break-word;
}

.section-header .section-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    margin: 10px 0 0;
    line-height: 1.4;
}

.section-content>*:first-child {
    margin-top: 0;
}

.section-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.section-toggle::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--primary-color);
    transition: transform 0.25s ease;
}

.collapsible.collapsed .section-toggle::before {
    transform: rotate(180deg);
}

.collapsible .section-content {
    max-height: 2000px;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        padding-top 0.25s ease,
        padding-bottom 0.25s ease;
    opacity: 1;
}

.collapsible.collapsed .section-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

@media (min-width: 769px) {
    .collapsible.collapsed::after {
        content: 'Раздел свернут. Нажмите на стрелку, чтобы раскрыть подробности.';
        position: absolute;
        left: calc(30px + var(--section-sidebar-width) + 32px);
        right: 32px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.95rem;
        color: var(--text-color);
        opacity: 0.65;
        pointer-events: none;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #000000;
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    display: block;
}

.resume-section:first-of-type .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.resume-section:first-of-type .video-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.video-note {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.85;
    text-align: center;
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-item {
    position: relative;
    padding: 20px 24px 20px 32px;
    background: var(--soft-bg);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    border-left: none;
}

.education-list li:last-child .education-item {
    margin-bottom: 0;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: var(--secondary-color);
    border-radius: 999px;
}

.education-date {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 8px;
}

.education-institution {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 8px 0;
    line-height: 1.4;
}

.education-profile {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.5;
}

.education-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 4px;
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.language-item {
    background: var(--soft-bg);
    padding: 14px 18px 16px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.language-label {
    font-size: 1.2rem;
}

.language-level {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 86, 206, 0.12);
    overflow: hidden;
}

.language-level-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transition: width 0.6s ease;
}

.resume-section.visible .language-level-bar.level-5 {
    width: 100%;
}

.resume-section.visible .language-level-bar.level-4 {
    width: 80%;
}

.resume-section.visible .language-level-bar.level-2 {
    width: 40%;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 620px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-category {
    background: var(--soft-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 86, 206, 0.08), transparent);
    opacity: 0.8;
    pointer-events: none;
}

.skill-category h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.skill-category p {
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-item {
    background: var(--soft-bg);
    padding: 22px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 18px;
    border-left: 4px solid var(--secondary-color);
    line-height: 1.6;
}

.achievement-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.achievement-summary {
    margin: 4px 0 10px;
    font-size: 1.05rem;
    color: var(--primary-color);
    opacity: 0.9;
}

.achievement-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.03rem;
    line-height: 1.6;
    color: var(--primary-color);
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
}

.achievement-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 0 2px rgba(0, 86, 206, 0.15);
}

.achievement-list li+li {
    margin-top: 4px;
}

@media (min-width: 1024px) {
    .achievements .section-content {
        max-width: 820px;
    }
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 86, 206, 0.08), rgba(255, 255, 255, 0.6));
    border: 2px solid var(--secondary-color);
    margin-bottom: 32px;
}

.dark-theme .highlight-box {
    background: linear-gradient(135deg, rgba(94, 158, 255, 0.1), rgba(30, 30, 30, 0.6));
}

.competencies-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 32px 52px;
    margin-top: 10px;
}

.competency-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competency-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    margin: 0 auto 8px;
}

.competency-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    opacity: 0.9;
}

.competency-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.competency-chart {
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
}

.highlight-box.visible .competency-chart {
    transform: scale(1);
    opacity: 1;
}

.competency-chart:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.chartjs-tooltip {
    position: absolute;
    z-index: 20;
    background: rgba(11, 23, 40, 0.96);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, 0);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 320px;
    min-width: 220px;
    font-size: 12px;
}

.chartjs-tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.chartjs-tooltip-desc {
    opacity: 0.9;
    margin-bottom: 4px;
    line-height: 1.35;
}

.chartjs-tooltip-meta {
    font-size: 11px;
    opacity: 0.8;
}

.chartjs-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(11, 23, 40, 0.96);
}

.chartjs-tooltip[data-position="bottom"]::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid rgba(11, 23, 40, 0.96);
}

.download-wrapper {
    text-align: center;
    margin: 40px 0;
}

.download-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 33, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: #0016a0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 33, 219, 0.4);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--soft-bg);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.main-nav a:focus-visible,
.top-btn:focus-visible,
.theme-toggle:focus-visible,
.download-btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .header {
        padding: 16px 18px;
        margin-bottom: 24px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .photo-container img {
        width: 140px;
        height: 140px;
    }

    .info-container h1 {
        font-size: 2rem;
    }

    .info-container p {
        font-size: 1rem;
    }

    .info-container .theme {
        font-size: 1.05rem;
        padding: 16px 18px;
    }

    .section-content {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .main-nav {
        position: static;
        border-radius: var(--border-radius);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.98rem;
        padding: 10px 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section-toggle {
        top: 4px;
        right: 4px;
    }

    .competencies-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .competency-chart {
        width: 180px;
    }

    .competency-title {
        font-size: 1.2rem;
    }

    .download-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    body,
    body * {
        color: #000000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .theme-toggle,
    #progress-container,
    .top-buttons {
        display: none !important;
    }

    .container {
        max-width: none;
    }

    body::before {
        display: none !important;
    }
}

.external-link {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
    transition: border-bottom 0.2s ease;
}

.external-link:hover {
    border-bottom: 1px solid var(--secondary-color);
}

.external-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.external-link-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.external-link-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.section-content p {
    margin-bottom: 0.9em;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.photo-open {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 16px;
    display: inline-block;
}

.photo-open:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.lightbox[hidden] { display: none; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.78);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: 90vh;
    background: rgba(20, 22, 28, 0.98);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.lightbox__figure {
    margin: 0;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.lightbox__img {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    border-radius: 14px;
}

.lightbox__caption {
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    padding-bottom: 4px;
    color: rgba(255, 255, 255, 0.92);
}

.lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    font-size: 26px;
    line-height: 1;
}

.lightbox__close:hover { background: rgba(255,255,255,0.16); }

body.no-scroll { overflow: hidden; }

@media (max-width: 1384px) {
  html { font-size: 14.4px; }
}