/* Metric-matched fallback so layout doesn't shift when Inter swaps in */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107.4%;
    ascent-override: 90%;
    descent-override: 22.43%;
    line-gap-override: 0%;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eef1f4;
    --border-default: #d1d9e0;
    --border-muted: #e1e4e8;
    --text-primary: #1f2328;
    --text-secondary: #59636e;
    --text-muted: #8c959f;
    --accent-green: #1a7f37;
    --accent-blue: #0969da;
    --accent-purple: #8250df;
    --accent-orange: #bf8700;
    --accent-red: #d1242f;
    --accent-pink: #bf3989;
    --accent-cyan: #0891b2;
    --accent-yellow: #9a6700;
    --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.04);
    --shadow-md: 0 3px 6px rgba(31, 35, 40, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #010409;
    --bg-tertiary: #161b22;
    --border-default: #30363d;
    --border-muted: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8d96a0;
    --text-muted: #636c76;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 90px 0px;
    position: relative;
    counter-reset: section;
}

/* Switchers Container */
.switchers-container {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    padding: 0 8px 0 10px;
    height: 34px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lang-current:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.lang-switcher.open .lang-current {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.lang-arrow {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.lang-current:hover .lang-arrow,
.lang-switcher.open .lang-arrow {
    color: var(--text-secondary);
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    padding: 4px;
    min-width: 132px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 7px 10px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.lang-btn.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
}

.lang-btn.active::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    margin-left: 8px;
    flex-shrink: 0;
}

/* Theme Switcher */
.theme-switcher {
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    width: 34px;
    height: 34px;
    color: var(--text-muted);
}

.theme-switcher:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.theme-icon {
    width: 16px;
    height: 16px;
    transition: color 0.2s ease, fill 0.2s ease, filter 0.2s ease;
    fill: none;
}

[data-theme="light"] .theme-icon,
:root:not([data-theme]) .theme-icon {
    fill: none;
}

[data-theme="dark"] .theme-switcher {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .theme-icon {
    fill: rgba(251, 191, 36, 0.18);
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.35));
}

[data-theme="dark"] .theme-switcher:hover {
    color: #f59e0b;
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.08);
}

[data-theme="dark"] .theme-switcher:hover .theme-icon {
    fill: rgba(251, 191, 36, 0.28);
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

/* Header Icon Links */
.telegram-link,
.map-link {
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    width: 34px;
    height: 34px;
    color: var(--text-muted);
    text-decoration: none;
    flex-shrink: 0;
}

.telegram-link:hover {
    color: #229ED9;
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.map-link:hover {
    color: var(--accent-blue);
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.telegram-icon,
.map-icon {
    width: 16px;
    height: 16px;
}

/* Header */
.profile {
    text-align: center;
    margin-bottom: 36px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

@media (min-width: 640px) {
    .profile {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "avatar name"
            "avatar bio"
            "avatar stats";
        align-items: center;
        column-gap: 32px;
        row-gap: 10px;
        text-align: left;
        margin-bottom: 44px;
        padding: 10px 4px;
    }
}

.profile-logo {
    width: 128px;
    height: 128px;
    margin: 0 auto 10px;
    position: relative;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .profile-logo {
        grid-area: avatar;
        width: 144px;
        height: 144px;
        margin: 0;
    }
}

.profile-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg,
        #00d4ff 0%,
        #1ec9e8 20%,
        #ff6b35 50%,
        #fd8c00 70%,
        #00d4ff 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transform: rotate(var(--ring-angle, 0deg));
    opacity: 0.95;
    z-index: 2;
}

.profile-logo::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(0, 212, 255, 0.28) 0%,
        rgba(255, 107, 53, 0.18) 35%,
        rgba(255, 107, 53, 0.06) 55%,
        transparent 72%
    );
    filter: blur(14px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

[data-theme="dark"] .profile-logo::after {
    background: radial-gradient(circle at center,
        rgba(0, 212, 255, 0.38) 0%,
        rgba(255, 107, 53, 0.24) 35%,
        rgba(255, 107, 53, 0.08) 55%,
        transparent 72%
    );
    opacity: 0.9;
}

.profile-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .profile-logo img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.username {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.7px;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .username {
        grid-area: name;
        justify-content: flex-start;
        font-size: 38px;
        letter-spacing: -0.9px;
    }
}

.bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 2px 0 8px;
    letter-spacing: -0.005em;
    line-height: 1.5;
    text-wrap: balance;
}

@media (min-width: 640px) {
    .bio {
        grid-area: bio;
        margin: 0;
        font-size: 15px;
    }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .stats {
        grid-area: stats;
        justify-content: flex-start;
        margin-top: 6px;
    }
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-muted);
    white-space: nowrap;
    letter-spacing: -0.005em;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.stat:hover {
    color: var(--text-primary);
    border-color: var(--border-default);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.stat:hover .stat-icon {
    transform: scale(1.1);
}

.stat:nth-child(1) .stat-icon { color: var(--accent-blue); }
.stat:nth-child(2) .stat-icon { color: var(--accent-purple); }
.stat:nth-child(3) .stat-icon { color: var(--accent-pink); }
.stat:nth-child(4) .stat-icon { color: var(--accent-green); }

/* About Section */
.about-wrapper {
    margin-top: 56px;
}

.about-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 0;
    padding: 24px;
    margin: 16px 0 0 0;
}

.about-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

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

.about-highlight {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Experience Stats */
.experience-section {
    margin-top: 56px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.experience-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.experience-item::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.1;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 0;
}

.experience-item:nth-child(1)::before {
    -webkit-mask: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"/><path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"/><path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"/></svg>') center / contain no-repeat;
}

.experience-item:nth-child(2)::before {
    -webkit-mask: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.828 1.828l1.937.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.828l-.645 1.937a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828l.645-1.937zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.734 1.734 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69a1.734 1.734 0 0 0-1.097-1.097l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.734 1.734 0 0 0 3.407 2.31l.387-1.162zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L10.863.1z"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.828 1.828l1.937.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.828l-.645 1.937a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828l.645-1.937zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.734 1.734 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69a1.734 1.734 0 0 0-1.097-1.097l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.734 1.734 0 0 0 3.407 2.31l.387-1.162zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L10.863.1z"/></svg>') center / contain no-repeat;
}

.experience-item:nth-child(3)::before {
    -webkit-mask: url('data:image/svg+xml,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L1.608 6v12L12 24l10.392-6V6L12 0zm-1.5 17.52l-4.5-2.6V9.08l4.5 2.6v5.84zm.75-7.02L6.75 7.9 12 5.3l5.25 2.6-5.25 2.6h-.75zm6 4.42l-4.5 2.6v-5.84l4.5-2.6v5.84z"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L1.608 6v12L12 24l10.392-6V6L12 0zm-1.5 17.52l-4.5-2.6V9.08l4.5 2.6v5.84zm.75-7.02L6.75 7.9 12 5.3l5.25 2.6-5.25 2.6h-.75zm6 4.42l-4.5 2.6v-5.84l4.5-2.6v5.84z"/></svg>') center / contain no-repeat;
}

.experience-item:nth-child(4)::before {
    -webkit-mask: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"/><path d="m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66z"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml,<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"/><path d="m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66z"/></svg>') center / contain no-repeat;
}

.experience-item:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.experience-item:hover::before {
    opacity: 0.18;
    background-color: var(--accent-blue);
    transform: scale(1.1) rotate(5deg);
}

[data-theme="dark"] .experience-item::before {
    opacity: 0.12;
}

[data-theme="dark"] .experience-item:hover::before {
    opacity: 0.22;
}

.experience-icon {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.experience-item:hover .experience-icon {
    color: var(--accent-blue);
}

.experience-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.experience-item:hover .experience-number {
    color: var(--accent-blue);
}

.experience-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Links Section */
.links-section {
    margin-top: 56px;
}

/* Tech Stack */
.tech-section {
    margin-top: 56px;
}

.section-header {
    counter-increment: section;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-feature-settings: "ss01", "cv11";
}

.section-header::before {
    content: counter(section, decimal-leading-zero);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.6px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
    padding-top: 2px;
}

.section-intro {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 26px;
    padding: 0;
}

.section-header + .section-intro {
    margin-top: -18px;
    padding-left: 36px;
}

/* Link rows — inline icon, no card box (Telegram CTA is restyled below) */
.link-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    padding: 14px 4px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.link-card:last-child {
    border-bottom: none;
}

.link-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 1px;
    transition: color 0.2s ease;
}

.link-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.link-card:hover .link-icon,
.link-card:hover .link-title {
    color: var(--accent-blue);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.link-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.link-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Telegram CTA */
.footer-telegram-cta {
    margin: 40px 0 0;
    padding: 16px;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-muted);
    border-radius: 0;
    box-shadow: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}

.link-card.footer-telegram-cta:last-child {
    border-bottom: 1px solid var(--border-muted);
}

.link-card.footer-telegram-cta:last-child:hover {
    border-bottom-color: var(--accent-blue);
}

.footer-telegram-cta::before {
    content: '';
    position: absolute;
    right: 14px;
    width: 88px;
    height: 88px;
    opacity: 0.08;
    background-color: var(--text-primary);
    -webkit-mask: url('data:image/svg+xml,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>') center / contain no-repeat;
    transition: all 0.3s ease;
    z-index: 0;
}

.footer-telegram-cta:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.footer-telegram-cta:hover::before {
    opacity: 0.16;
    background-color: var(--accent-blue);
    transform: scale(1.08) rotate(5deg);
}

.footer-telegram-cta .link-icon {
    width: 34px;
    height: 34px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    color: var(--text-secondary);
    margin-top: 0;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-telegram-cta:hover .link-icon {
    background: rgba(9, 105, 218, 0.1);
    border-color: rgba(9, 105, 218, 0.2);
    color: var(--accent-blue);
    transform: scale(1.03);
}

.footer-telegram-cta .link-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-telegram-cta .link-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.footer-telegram-cta .link-title {
    margin-bottom: 2px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-telegram-cta .link-description {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-telegram-cta .link-arrow {
    display: inline-flex;
    opacity: 1;
    transform: none;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-telegram-cta:hover .link-title,
.footer-telegram-cta:hover .link-arrow {
    color: var(--accent-blue);
}

.footer-telegram-cta:hover .link-arrow {
    transform: translateX(3px);
}

/* Footer */
.footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-location {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 639px) {
    .container {
        padding: calc(18px + env(safe-area-inset-top)) 16px 32px;
    }

    .switchers-container {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 24px;
        z-index: 10;
    }

    .lang-current,
    .theme-switcher,
    .telegram-link,
    .map-link {
        height: 36px;
        border-radius: 11px;
    }

    .theme-switcher,
    .telegram-link,
    .map-link {
        width: 36px;
    }

    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .profile-logo {
        width: 112px;
        height: 112px;
    }

    .username {
        font-size: 26px;
    }

    .bio {
        font-size: 14px;
    }

    .section-header {
        font-size: 22px;
        gap: 12px;
    }

    .section-header + .section-intro {
        padding-left: 30px;
    }

    .link-card {
        padding: 12px 4px;
        gap: 12px;
    }

    .link-title {
        font-size: 14px;
    }

    .link-description {
        font-size: 12px;
    }

    .experience-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .experience-item {
        padding: 16px 12px;
    }

    .experience-number {
        font-size: 28px;
    }

    .experience-label {
        font-size: 12px;
    }
}

/* Expandable service cards */
.link-card.srv-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    user-select: none;
}

.srv-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.srv-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    align-self: center;
    margin-top: 1px;
    transition: transform 0.25s ease, color 0.2s ease;
}

.link-card.srv-card:hover .srv-chevron {
    color: var(--accent-blue);
}

.link-card.srv-card.open .srv-chevron {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.srv-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    padding-left: 36px;
}

.link-card.srv-card.open .srv-detail {
    grid-template-rows: 1fr;
}

.srv-detail-wrap {
    overflow: hidden;
}

.srv-detail-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 4px 0 12px;
}

.srv-detail-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Subsection divider within combined block */
.subsection-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 40px 0 0;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.subsection-title::before,
.subsection-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-muted);
}

.subsection-title + .section-intro {
    margin-top: 12px;
}

/* Solutions list — same visual language as Services */
.solutions-grid {
    margin-top: 0;
}

/* Stack List */
.stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-muted);
    white-space: nowrap;
    letter-spacing: -0.005em;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.stack-icon {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.stack-list li:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}


/* Portfolio Section */
.portfolio-grid {
    display: block;
    margin-top: 6px;
}

.portfolio-grid .experience-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    padding: 14px 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    box-shadow: none;
    transform: none;
    overflow: visible;
    cursor: default;
}

.portfolio-grid .experience-item:last-child {
    border-bottom: none;
}

.portfolio-grid .experience-item::before {
    display: none;
}

.portfolio-grid .experience-item:hover {
    border-color: var(--border-muted);
    box-shadow: none;
    transform: none;
}

.portfolio-grid .experience-icon {
    order: 1;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.portfolio-grid .experience-label {
    order: 2;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-grid .experience-number {
    order: 3;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    padding: 4px 9px;
    line-height: 1;
}

.portfolio-grid .experience-item:hover .experience-icon,
.portfolio-grid .experience-item:hover .experience-label,
.portfolio-grid .experience-item:hover .experience-number {
    color: var(--accent-blue);
}

@media (max-width: 600px) {
    .portfolio-grid {
        display: block;
    }

    .portfolio-grid .experience-item {
        gap: 12px;
    }
}
