:root {
    --primary: #00f5ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #0a0a0a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стиль выделения текста */
::selection {
    background: var(--primary);
    color: #000000;
}

::-moz-selection {
    background: var(--primary);
    color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Кастомный ползунок прокрутки */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 6px;
    border: 2px solid rgba(10, 10, 10, 0.6);
    transition: all var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    border-color: rgba(0, 245, 255, 0.3);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00f5ff rgba(10, 10, 10, 0.6);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Фоновая анимация */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-duration: 30s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-duration: 35s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-duration: 28s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 20%;
    animation-duration: 22s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
    }

    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Кнопка возвращения назад */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background: rgba(10, 10, 10, 0.8);
    color: var(--primary);
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Скрыть кнопки на телефоне */
@media (max-width: 768px) {
    .back-to-top {
        display: none;
    }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 1rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    transition: all var(--transition);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.main-container {
    margin-top: 100px;
}

/* Главная */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Боковые пузырьки в hero */
.hero-bubbles {
    position: absolute;
    bottom: -40px;
    width: 150px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-bubbles-left {
    left: 1.2rem;
}

.hero-bubbles-right {
    right: 1.2rem;
}

.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.36), rgba(44, 152, 214, 0.22) 45%, rgba(44, 152, 214, 0.08) 75%, transparent 100%);
    border: 1px solid rgba(98, 180, 230, 0.35);
    box-shadow: 0 0 20px rgba(44, 152, 214, 0.14), inset 0 0 12px rgba(255, 255, 255, 0.22);
    opacity: 0;
    animation: heroBubbleRise 10s linear infinite;
}

.hero-bubbles .b1 {
    width: 20px;
    height: 20px;
    left: 8px;
    animation-duration: 10s;
    animation-delay: 0s;
}

.hero-bubbles .b2 {
    width: 28px;
    height: 28px;
    left: 44px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.hero-bubbles .b3 {
    width: 16px;
    height: 16px;
    left: 80px;
    animation-duration: 9s;
    animation-delay: 4s;
}

.hero-bubbles .b4 {
    width: 24px;
    height: 24px;
    left: 20px;
    animation-duration: 11s;
    animation-delay: 6s;
}

.hero-bubbles .b5 {
    width: 14px;
    height: 14px;
    left: 108px;
    animation-duration: 8.5s;
    animation-delay: 1s;
}

.hero-bubbles .b6 {
    width: 30px;
    height: 30px;
    left: 60px;
    animation-duration: 13s;
    animation-delay: 3.5s;
}

.hero-bubbles .b7 {
    width: 18px;
    height: 18px;
    left: 2px;
    animation-duration: 9.5s;
    animation-delay: 5s;
}

.hero-bubbles .b8 {
    width: 22px;
    height: 22px;
    left: 126px;
    animation-duration: 10.5s;
    animation-delay: 7s;
}

@keyframes heroBubbleRise {
    0% {
        transform: translateY(0) translateX(0) scale(0.88);
        opacity: 0;
    }

    15% {
        opacity: 0.75;
    }

    60% {
        opacity: 0.45;
    }

    100% {
        transform: translateY(-95vh) translateX(14px) scale(1.08);
        opacity: 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    z-index: 1;
    position: relative;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.hero-description-section {
    max-width: 600px;
    margin: 0 auto;
}



.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: center;
}

.title-highlight {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    min-height: 80px;
    height: 80px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.role-text {
    transition: opacity 0.3s ease-in-out;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Индикатор прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: bounce 3s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-buttons .btn {
    min-width: 160px;
    max-width: 180px;
    justify-content: center;
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #2c98d6 0%, #3197d6 100%);
    border: 1px solid rgba(34, 158, 217, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Обо мне */
.about {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.about-info {
    text-align: left;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.4rem;
    line-height: 1.;
    color: var(--text-secondary);
    margin-bottom: 2.6rem;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.age-highlight {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.3em;
    display: inline-block;
    animation: ageGlow 2s ease-in-out infinite alternate;
}

@keyframes ageGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 245, 255, 0.3));
    }
}

.education-text {
    margin-bottom: 2rem;
}

.education-text .about-text {
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-start;
    position: sticky;
    top: 6rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Для телефона для секции "Обо мне" */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-info {
        text-align: left;
    }

    .about-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-card {
        min-width: 140px;
        padding: 1.5rem;
    }

    .about-intro {
        margin-bottom: 1.5rem;
    }

    .about-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
}

/* Образование */
.education {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.education-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.education-timeline {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

/* Timeline Chart */
.timeline-chart {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 580px;
    transition: all var(--transition);
}

.timeline-chart:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.chart-header {
    margin-bottom: 2rem;
    text-align: center;
}

.chart-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.yandex {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.legend-color.college {
    background: var(--gradient-accent);
}

.legend-color.university {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

/* Описание диаграммы */
.chart-description {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Контейнер для диаграмм */
.chart-container {
    position: relative;
    height: 340px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

.timeline-years {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    padding-left: 0;
}

.timeline-years span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.parallel-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    position: relative;
}

.timeline-track {
    display: block;
    align-items: center;
}

.track-line {
    position: relative;
    height: 76px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        repeating-linear-gradient(to right,
            transparent 0%,
            transparent calc(14.2857% - 1px),
            rgba(255, 255, 255, 0.12) calc(14.2857% - 1px),
            rgba(255, 255, 255, 0.12) 14.2857%);
}

.track-bar {
    position: absolute;
    top: 10px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.track-bar.yandex-bar {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.85), rgba(255, 142, 142, 0.75));
    justify-content: center;
}

.track-bar.yandex-bar span {
    font-size: 0.74rem;
    text-align: center;
    line-height: 1.15;
}

.track-bar.college-bar {
    background: linear-gradient(90deg, rgba(44, 152, 214, 0.9), rgba(49, 151, 214, 0.78));
}

.track-bar.university-bar {
    background: linear-gradient(90deg, rgba(162, 155, 254, 0.85), rgba(108, 92, 231, 0.74));
}

.overlap-note {
    margin-top: 0.4rem;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Детали образования */
.education-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-detail-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: 120px;
    transition: all var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.education-detail-item:nth-child(1) {
    animation-delay: 0.8s;
}

.education-detail-item:nth-child(2) {
    animation-delay: 1s;
}

.education-detail-item:nth-child(3) {
    animation-delay: 1.2s;
}

.education-detail-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.detail-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.detail-icon.yandex {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.detail-icon.college {
    background: var(--gradient-accent);
}

.detail-icon.university {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.detail-content h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-period {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.detail-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для телефона для секции "Образование" */
@media (max-width: 768px) {
    .education-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chart-legend {
        gap: 1rem;
    }

    .chart-description {
        margin-top: 1.5rem;
    }

    .timeline-text {
        font-size: 0.85rem;
    }

    .education-detail-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        min-height: auto;
        padding: 1.5rem;
    }

    .detail-content {
        min-height: auto;
    }

    .detail-icon {
        align-self: center;
    }

    .chart-container {
        height: auto;
        gap: 0.9rem;
    }

    .timeline-years {
        padding-left: 0;
        font-size: 0.78rem;
    }

    .timeline-track {
        display: block;
    }

    .track-line {
        height: 60px;
    }

    .track-bar {
        top: 8px;
        height: 44px;
        font-size: 0.72rem;
        padding: 0 0.45rem;
    }

    .overlap-note {
        margin-left: 0;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
}

/* Опыт работы */
.experience {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.experience-content {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.experience-timeline {
    margin-top: 4rem;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.experience-item {
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    display: flex;
}

.experience-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.experience-card:hover {
    transform: none;
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.company-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin: 0;
}

.company-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.company-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: 14px;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

/* Лого компании */
.company-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.company-icon.gazprom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.company-icon.gazprom::before {
    display: none;
}

/* Оформление образовательных ссылок */
.edu-link {
    color: #c1d3da;
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.edu-link:hover {
    color: var(--text-primary);
    border-bottom-color: #c1d3da;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.company-name {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.position {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding-left: 0;
}

.experience-details {
    text-align: left;
}

.tech-stack {
    margin-bottom: 2rem;
}

.tech-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: all var(--transition);
}

.tech-tag:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

.tech-tag.kotlin {
    border-color: rgba(124, 77, 255, 0.4);
    background: rgba(124, 77, 255, 0.1);
    color: #7c4dff;
}

.tech-tag.android {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.tech-tag.rest-api {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.sip {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.experience-description {
    margin-bottom: 2rem;
}

.experience-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Для телефона секция "Опыт работы" */
@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .experience-details {
        text-align: center;
    }

    .tech-tags {
        justify-content: center;
    }

}

/* Проекты */
.projects {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.projects-content {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    padding-bottom: calc(0.5rem + 52px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Контент карточки должен быть поверх "полосы" бейджа */
.project-card > *:not(.user-count-badge) {
    position: relative;
    z-index: 1;
}

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-card:nth-child(2) {
    animation-delay: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.project-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.project-icon.android {
    background: linear-gradient(135deg, #3ddc84, #4caf50);
}

.project-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: 14px;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

.project-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-subtitle {
    color: #52c5ff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.project-description {
    margin-bottom: 2rem;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.project-tech {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-tech .tech-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid;
    width: 100%;
}

.tech-tag.python {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.pyrogram {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.peewee {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.kotlin {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.compose {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.zxing {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.flutter {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.dart {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.firebase {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-actions .project-btn {
    flex: 1 1 140px;
}

/* Чуть больше "воздуха" снизу у GitHub в карточке "Мой МПТ" */
.project-actions .project-btn.my-mpt-github {
    margin-bottom: 0;
}

/* "Мой МПТ": три кнопки строго в один ряд */
.project-card.my-mpt-card .project-actions {
    flex-wrap: nowrap;
}

.project-card.my-mpt-card .project-actions .project-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 1.1rem;
    box-sizing: border-box;
}

.project-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
    line-height: 1;
}

.project-btn span {
    line-height: 1;
}

/* "Мой МПТ": не переносить текст в кнопках (иначе разная высота) */
.project-card.my-mpt-card .project-actions .project-btn,
.project-card.my-mpt-card .project-actions .project-btn span {
    white-space: nowrap;
}

.project-btn.github {
    background: rgba(36, 41, 47, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-btn.github:hover {
    background: rgba(36, 41, 47, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 41, 47, 0.3);
}

.project-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
}

.project-btn.telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.project-btn.rustore {
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
}

.project-btn.rustore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.project-btn.appstore {
    background: rgba(34, 34, 34, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-btn.appstore:hover {
    background: rgba(34, 34, 34, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Значок количества пользователей */
.user-count-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 24px;
    background: rgba(160, 160, 160, 0.03);
    border-left: none;
    border-top: 1px solid rgba(160, 160, 160, 0.08);
    border-radius: 0 0 20px 20px;
    padding: 0.25rem 0.75rem;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.user-count-badge:hover {
    transform: translateY(-1px);
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.12);
}

.count-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(180, 180, 180, 0.7);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.count-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(160, 160, 160, 0.6);
    line-height: 1;
    text-transform: lowercase;
}

/* Стиль значка кнопки */
.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Разработка дизайна логотипа проекта */
.project-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-icon.mention-bot {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-icon.seacard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-icon.my-mpt {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Для телефона секция "Проекты" */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-tech {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-actions {
        justify-content: center;
    }

    .project-actions .project-btn {
        flex: 0 1 auto;
        min-width: 120px;
    }

    .project-card.my-mpt-card .project-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-card.my-mpt-card .project-actions .project-btn {
        flex: 0 1 auto;
        min-width: 110px;
        min-height: 40px;
        padding: 0.55rem 1rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 4rem 1rem;
    }

    .project-card {
        padding: 2rem;
        padding-bottom: calc(0.5rem + 44px);
    }

    .project-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-btn {
        width: auto;
        min-width: 110px;
        flex: 0 1 auto;
    }

    .user-count-badge {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 34px;
        padding: 0.2rem 0.55rem;
        border-left: none;
        border-top: 1px solid rgba(160, 160, 160, 0.08);
        border-radius: 0 0 20px 20px;
        writing-mode: horizontal-tb;
    }

    .count-number {
        font-size: 0.9rem;
    }

    .count-label {
        font-size: 0.65rem;
    }

    .project-tech {
        gap: 0.5rem;
    }

    .project-tech .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .project-description {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .project-card.my-mpt-card .project-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-card.my-mpt-card .project-actions .project-btn,
    .project-card.my-mpt-card .project-actions .project-btn span {
        white-space: normal;
    }

    .project-card.my-mpt-card .project-actions .project-btn {
        min-width: 96px;
        min-height: 38px;
        padding: 0.55rem 0.9rem;
    }
}

/* Технологии */
.technologies {
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.technologies-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tech-category {
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.8s ease-out both;
}

.technologies .section-description {
    margin-bottom: 2.4rem;
    font-size: 1.05rem;
}

.tech-category:nth-child(1) {
    animation-delay: 0.2s;
}

.tech-category:nth-child(2) {
    animation-delay: 0.4s;
}

.tech-category:nth-child(3) {
    animation-delay: 0.6s;
}

.tech-category:nth-child(4) {
    animation-delay: 0.8s;
}

.category-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: left;
    padding: 0.45rem 0.8rem;
    border-left: 3px solid var(--primary);
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    position: relative;
    min-height: 132px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    cursor: default;
    transition: transform .22s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.tech-icon i {
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3));
}

.tech-zabbix-letter {
    font-style: normal;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3));
}

.tech-logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
}

.tech-logo.real-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
}

.tech-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.tech-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.skill-badge {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--primary);
    padding: 0.22rem 0.6rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.tech-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.certificate-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--primary);
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-badge i {
    font-size: 0.9rem;
}

/* Интерактивные карты */
.tech-card-clickable {
    cursor: pointer;
    position: relative;
}

.tech-card-clickable:hover {
    cursor: pointer;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 1024px) {
    .experience-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-item {
        margin-bottom: 0;
    }

    .hero-content {
        gap: 2rem;
    }

    .download-container {
        width: 140px;
        padding: 1.5rem 1rem;
    }

    .download-container.left {
        left: 1rem;
    }

    .download-container.right {
        right: 1rem;
    }

    .download-icon {
        font-size: 2rem;
    }

    .download-number {
        font-size: 1.6rem;
    }

    .download-label {
        font-size: 0.75rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .category-title {
        font-size: 1.6rem;
        padding: 0.8rem 1.2rem;
    }

    .tech-card {
        min-height: 150px;
        padding: 1.2rem;
    }

    .tech-icon i {
        font-size: 2.2rem;
    }

    .tech-logo {
        width: 2.2rem;
        height: 2.2rem;
        filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
    }

    .tech-name {
        font-size: 1.1rem;
    }

    .tech-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        left: 1rem;
        right: 1rem;
        top: 0.5rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 1rem;
    }

    /* Скрытие плавающих контейнеров */
    .download-containers {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .technologies {
        padding: 3rem 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-title {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }

    .tech-category {
        margin-bottom: 2rem;
    }

    .tech-card {
        min-height: 140px;
        padding: 1rem;
    }

    .tech-icon i {
        font-size: 2rem;
    }

    .tech-logo {
        width: 2rem;
        height: 2rem;
        filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
    }

    .tech-name {
        font-size: 1rem;
    }

    .tech-description {
        font-size: 0.8rem;
    }

    .skill-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .certificate-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .about,
    .education,
    .experience,
    .projects,
    .technologies {
        padding: 3rem 1rem;
    }

    .education {
        padding: 1.5rem 1rem;
    }

    .education-timeline {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .timeline-chart {
        min-height: 350px;
        padding: 1.2rem;
    }

    .chart-container {
        height: 180px;
    }

    .education-bars {
        height: 130px;
        gap: 0.8rem;
    }

    .education-bar {
        height: 35px;
    }

    .bar-content {
        padding: 0 0.4rem;
    }

    .bar-label {
        font-size: 0.65rem;
    }

    .bar-status {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .education-details {
        gap: 0.8rem;
    }

    .education-detail-item {
        padding: 0.8rem;
        gap: 0.6rem;
        min-height: auto;
    }

    .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .detail-content h4 {
        font-size: 0.85rem;
    }

    .detail-period {
        font-size: 0.7rem;
    }

    .detail-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .category-title {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--primary);
        justify-content: center;
        font-weight: 600;
    }

    .tech-category {
        margin-bottom: 1.8rem;
    }

    .tech-card {
        min-height: auto;
        padding: 0.6rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .tech-icon {
        margin-bottom: 0.4rem;
    }

    .tech-icon i {
        font-size: 1.4rem;
    }

    .tech-logo {
        width: 1.4rem;
        height: 1.4rem;
        filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
    }

    .tech-info {
        gap: 0;
    }

    .tech-name {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .tech-description {
        display: none;
    }

    .skill-badge {
        display: none;
    }

    .tech-skills {
        display: none;
    }

    .certificate-badge {
        display: none;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .company-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .company-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .position {
        font-size: 1rem;
    }

    .tech-tags {
        gap: 0.5rem;
    }

    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .experience-description {
        margin-bottom: 1.5rem;
    }

    .experience-description p {
        font-size: 0.9rem;
    }

    .project-card {
        padding: 1.5rem;
        padding-bottom: calc(0.5rem + 44px);
    }

    .project-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    .project-tech {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .project-tech .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-description {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .project-description p {
        font-size: 0.9rem;
    }

    .project-actions {
        gap: 0.5rem;
    }

    .project-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .project-card.my-mpt-card .project-actions {
        flex-wrap: wrap;
    }

    .project-card.my-mpt-card .project-actions .project-btn,
    .project-card.my-mpt-card .project-actions .project-btn span {
        white-space: normal;
    }

    .user-count-badge {
        padding: 0.2rem 0.55rem;
        min-width: 60px;
        width: 100%;
        height: 34px;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        border-left: none;
        border-top: 1px solid rgba(160, 160, 160, 0.08);
        border-radius: 0 0 20px 20px;
        writing-mode: horizontal-tb;
    }

    .count-number {
        font-size: 0.8rem;
    }

    .count-label {
        font-size: 0.6rem;
    }

    .about-stats {
        gap: 0.8rem;
        flex-direction: row;
        justify-content: center;
    }

    .stat-card {
        padding: 1.2rem;
        min-width: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        flex-direction: row;
    }

    .stat-icon {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .stat-content {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 0.4rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: left;
        line-height: 1.6;
    }

    .about-info {
        text-align: left;
    }

    .about-intro {
        margin-bottom: 1.2rem;
    }

    .age-highlight {
        font-size: 1.1em;
    }

    .hero {
        padding: 1rem;
        min-height: 90vh;
    }

    .download-containers {
        display: none;
    }

    .hero-content {
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-center {
        gap: 0.5rem;
    }

    .main-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    .role-container {
        gap: 0.4rem;
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 1.2rem;
        min-height: 65px;
        height: 65px;
    }

    .hero-description-section {
        max-width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: auto;
        max-width: none;
        justify-content: center;
        min-width: 120px;
    }

    .scroll-indicator {
        font-size: 1.8rem;
        bottom: 1rem;
    }
}

/* Модальное окно сертификатов */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(0, 245, 255, 0.2);
    transform: scale(1.1);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.modal-body {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Адаптив для модального окна */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .certificate-img {
        max-height: 60vh;
    }
}
