/* ========== ОСНОВНЫЕ НАСТРОЙКИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0c0c0c;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* ========== КАНВАС ДЛЯ ЧАСТИЦ ========== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    border-bottom: 2px solid #2a2a2a;
    background-color: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    border-left: 4px solid #c41e1e;
    padding-left: 16px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #a0a0a0;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
    text-decoration: none;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.burger span {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    transition: 0.2s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #0f0f0f;
    border-top: 2px solid #c41e1e;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 99;
    border-bottom: 2px solid #2a2a2a;
}

.mobile-menu a {
    color: #e5e5e5;
    text-decoration: none;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
}

.mobile-menu a:hover {
    background-color: #c41e1e;
    color: #0c0c0c;
}

.btn-outline-nav {
    border: 2px solid #c41e1e;
    background: transparent;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    border-radius: 0;
    transition: 0.2s;
    text-decoration: none;
}

.btn-outline-nav:hover {
    background: #c41e1e;
    color: #0c0c0c;
}

/* ========== HERO ========== */
.hero {
    padding: 120px 0 80px;
    border-bottom: 2px solid #1e1e1e;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: stretch; /* Меняем с 'end' на 'stretch' */
}

/* Левая колонка с именем и статистикой */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Правая колонка с терминалом и цитатой */
.hero-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-accent {
    color: #c41e1e;
    display: block;
    font-size: 0.7em;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 18px;
    color: #b0b0b0;
    max-width: 600px;
    margin-bottom: 40px;
    border-left: 3px solid #c41e1e;
    padding-left: 20px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-block {
    border: 1px solid #2a2a2a;
    padding: 20px 25px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
}

.stat-number {
    font-weight: 800;
    font-size: 36px;
    color: #c41e1e;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #808080;
    letter-spacing: 0.5px;
}

/* ========== ЦИТАТА ========== */
.hero-quote {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    border: 2px solid #2a2a2a;
    border-left: 6px solid #c41e1e;
    padding: 20px 25px; /* ТАКИЕ ЖЕ ПАДДИНГИ КАК У stat-block */
    min-height: auto; /* Убираем фиксированную высоту */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    box-sizing: border-box;
    margin-top: 20px;
    flex-shrink: 0;
    height: 96px; /* ФИКСИРОВАННАЯ ВЫСОТА КАК У stat-block */
}

.hero-quote::before {
    content: "“";
    position: absolute;
    top: 0px;
    left: 8px;
    font-size: 40px;
    color: #c41e1e;
    font-family: serif;
    line-height: 1;
}

/* Обновляем stat-block чтобы убедиться что высота одинаковая */
.stat-block {
    border: 1px solid #2a2a2a;
    padding: 20px 25px; /* 20px вертикальные, 25px горизонтальные */
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    height: 96px; /* ФИКСИРУЕМ ВЫСОТУ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.quote-content {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
    font-style: italic;
    padding: 0;
}

/* Контейнер для творчества сверху */
.hero-creative {
    height: 60px; /* Место для твоих идей */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Адаптация */
@media (max-width: 900px) {
    .hero-quote {
        height: auto;          /* Убираем фиксированную высоту */
        min-height: 96px;      /* Минимальная высота как у stat-block */
        padding: 15px 20px;    /* Чуть меньше отступы */
        margin-top: 20px;
    }

    .hero-quote .quote-text {
        font-size: 14px;       /* Чуть меньше текст */
        line-height: 1.4;
        word-break: break-word; /* Перенос длинных слов */
    }
    
    .quote-content {
        font-size: 14px;
    }
    
    .hero-creative {
        height: 40px;
    }
}

/* ========== ТЕРМИНАЛ ========== */
.terminal-container {
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    font-family: 'Courier New', monospace;
    width: 100%;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    margin-bottom: 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

/* Убираем заголовок */
.terminal-header {
    display: none;
}

.terminal-body {
    padding: 20px;
    background: #0a0a0a;
    color: #e5e5e5;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    position: relative;
    font-family: 'Courier New', monospace;
    
    /* Скрываем скролл */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.terminal-body::-webkit-scrollbar {
    display: none;
}

/* Контейнер для вывода */
.terminal-output-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.terminal-output {
    margin-bottom: 0;
    padding-left: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Обычные строки */
.terminal-output-line {
    color: #e5e5e5;
    margin-bottom: 8px;
    padding-left: 0;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.5;
}

/* Стили для фото - БЕЗ ПОДЛОЖЕК */
.terminal-output-line.photo {
    margin: 15px 0;
}

.photo-image {
    text-align: left;
    margin: 10px 0;
}

.photo-image img {
    max-width: 100%;
    max-height: 180px;
    border: 1px solid #333;
    cursor: pointer;
    transition: 0.2s;
    display: block;
}

.photo-image img:hover {
    border-color: #c41e1e;
}

/* Стили для капсулы времени */
.capsule-title {
    color: #e5e5e5;
    margin: 5px 0 2px 0;
    font-size: 14px;
}

.game-subtitle {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
}

.game-subtitle a {
    color: #c41e1e;
    text-decoration: none;
    border-bottom: 1px dotted #c41e1e;
}

.game-subtitle a:hover {
    color: #ff0000;
    border-bottom: 1px solid #ff0000;
}

/* Модалка для фото */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.photo-modal.show {
    display: flex;
}

.photo-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid #333;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.photo-modal-close:hover {
    color: #c41e1e;
}

/* Подпись под фото */
.photo-caption {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
    text-align: left;
}

/* Аудио-капсула */
.audio-capsule {
    margin: 15px 0;
}

.audio-wrapper {
    margin: 10px 0;
}

.audio-wrapper audio {
    width: 100%;
    max-width: 300px;
    height: 32px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
}

/* Стили для аудиоплеера в разных браузерах */
.audio-wrapper audio::-webkit-media-controls-panel {
    background: #1a1a1a;
}

.audio-wrapper audio::-webkit-media-controls-play-button {
    background-color: #c41e1e;
    border-radius: 50%;
}

.audio-wrapper audio::-webkit-media-controls-timeline {
    background-color: #333;
    border-radius: 10px;
    height: 4px;
}

.capsule-title {
    color: #e5e5e5;
    margin: 5px 0 2px 0;
    font-size: 14px;
}

.game-subtitle {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

.game-subtitle a {
    color: #c41e1e;
    text-decoration: none;
    border-bottom: 1px dotted #c41e1e;
}

.game-subtitle a:hover {
    color: #ff0000;
    border-bottom: 1px solid #ff0000;
}

/* Кастомный аудиоплеер - НОВАЯ ВЕРСИЯ */
.custom-audio-player {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.audio-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-play-button {
    width: 28px;
    height: 28px;
    background: #c41e1e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
    transition: 0.2s;
    flex-shrink: 0;
}

.audio-play-button:hover {
    background: #ff0000;
}

.audio-label {
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Кнопка mute (вместо ползунка громкости) */
.audio-mute-button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 16px;
    transition: 0.2s;
    flex-shrink: 0;
}

.audio-mute-button:hover {
    color: #c41e1e;
}

.audio-bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-progress-container {
    flex: 3;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.audio-progress-bar {
    height: 100%;
    background: #c41e1e;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-time {
    color: #888;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* Плавное появление всего контента */
.terminal-output-line {
    transition: opacity 0.3s ease;
}

/* Контейнер для поиска */
.searching-container {
    margin-top: 15px;
}

/* Мигающий курсор */
.searching-cursor {
    display: inline-block;
    color: #c41e1e;
    font-weight: bold;
    font-size: 16px;
    animation: cursor-blink 1s infinite;
    margin-left: 0;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Плавное появление фото */
.photo-image img {
    transition: opacity 0.5s ease, border-color 0.2s ease;
}

/* Плавное появление плеера */
.custom-audio-player {
    transition: opacity 0.5s ease, border-color 0.2s ease;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .audio-bottom-row {
        flex-wrap: wrap;
    }
    
    .audio-progress-container {
        flex: 1 1 100%;
        order: 1;
    }
    
    .audio-volume-container {
        flex: 1;
        order: 2;
    }
    
    .audio-time {
        order: 3;
    }
}

/* ========== СЕКЦИИ ========== */
.section {
    padding: 100px 0;
    border-bottom: 2px solid #1e1e1e;
    position: relative;
}

.section-title {
    font-weight: 800;
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title span {
    color: #c41e1e;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    background: #1e1e1e;
    padding: 6px 14px;
}

/* ========== О СЕБЕ ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 40px;
}

.about-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-card h3 i {
    color: #c41e1e;
    font-size: 28px;
}

.about-list {
    list-style: none;
}

.about-list i {
    color: #c41e1e;
    width: 20px;
    margin-top: 3px;
}

.about-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #c0c0c0;
}

.about-list li .list-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-list li .list-text strong {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-list li .list-text span {
    color: #c0c0c0;
    line-height: 1.5;
}

.about-highlight {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 20px;
}

/* ========== ОПЫТ ========== */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.exp-item {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 35px;
    transition: 0.2s;
}

.exp-item:hover {
    border-color: #c41e1e;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.exp-title {
    font-size: 22px;
    font-weight: 700;
}

.exp-date {
    color: #c41e1e;
    font-size: 15px;
}

.exp-sub {
    color: #808080;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.exp-desc {
    list-style: none;
}

.exp-desc li {
    margin-bottom: 12px;
    color: #b0b0b0;
    display: flex;
    gap: 10px;
    font-size: 15px;
}

.exp-desc i {
    color: #c41e1e;
    font-size: 14px;
    margin-top: 4px;
}

/* ========== НАВЫКИ ========== */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.skill-group {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 40px;
}

.skill-group h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    color: #c0c0c0;
}

.skill-bar-bg {
    height: 6px;
    background: #2a2a2a;
    border-radius: 0;
}

.skill-bar-fill {
    height: 6px;
    background: #c41e1e;
    width: 0%;
}

/* Инструменты */
.tools-row {
    grid-column: 1 / -1;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.tools-label {
    font-weight: 700;
    color: #c0c0c0;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.tools-icons {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.tools-icons i {
    font-size: 32px;
    color: #e5e5e5;
    transition: 0.2s;
}

.tools-icons i:hover {
    color: #c41e1e;
}

.tools-icons span {
    font-size: 16px;
    font-weight: 500;
    color: #b0b0b0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== ДОСТИЖЕНИЯ ========== */
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.achieve-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 30px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.achieve-card i {
    font-size: 36px;
    color: #c41e1e;
    margin-bottom: 12px;
}

.achieve-card span {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    max-width: 180px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .achieve-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .achieve-card {
        padding: 20px 10px;
        min-height: 150px;
    }
    
    .achieve-card i {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .achieve-card span {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .achieve-card {
        padding: 15px 8px;
        min-height: 130px;
    }
    
    .achieve-card span {
        font-size: 11px;
    }
}

/* ========== ОБРАЗОВАНИЕ ========== */
.edu-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 40px;
}

.edu-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.edu-meta {
    color: #c41e1e;
    margin: 10px 0 20px;
}

.edu-desc {
    color: #b0b0b0;
}

/* ========== БЛОК MAJESTIC ========== */
.majestic-block {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid #c41e1e;
    padding: 60px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    overflow: visible;
    animation: majesticGlow 100s infinite ease-in-out;
}

@keyframes majesticGlow {
    0% {
        box-shadow: 
            0 0 40px rgba(196, 30, 30, 0.4),
            0 0 80px rgba(196, 30, 30, 0.2),
            0 0 120px rgba(196, 30, 30, 0.1);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(196, 30, 30, 0.7),
            0 0 140px rgba(196, 30, 30, 0.4),
            0 0 200px rgba(196, 30, 30, 0.2);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(196, 30, 30, 0.4),
            0 0 80px rgba(196, 30, 30, 0.2),
            0 0 120px rgba(196, 30, 30, 0.1);
    }
}

.majestic-block h2 .amp {
    font-size: 0.7em;
    vertical-align: middle;
    margin: 0 0.1em;
}

.majestic-block h2 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.majestic-block h2 span {
    color: #c41e1e;
}

.majestic-sub {
    font-size: 18px;
    color: #c0c0c0;
    max-width: 700px;
    margin: 0 auto;
}

.majestic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.majestic-item {
    border-left: 3px solid #c41e1e;
    padding-left: 20px;
    text-align: left;
}

.majestic-item .num {
    font-size: 48px;
    font-weight: 800;
    color: #c41e1e;
    opacity: 0.9;
    line-height: 1;
}

.majestic-item p {
    font-size: 18px;
    font-weight: 600;
}

.majestic-item small {
    color: #909090;
    font-size: 14px;
}

.majestic-button {
    margin-top: 30px;
}

.majestic-button a {
    border: 2px solid #c41e1e;
    padding: 15px 50px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-block;
    background: rgba(196, 30, 30, 0.1);
    transition: 0.2s;
}

.majestic-button a:hover {
    background: #c41e1e;
    color: #0c0c0c;
}

/* ========== КОНТАКТЫ ========== */
.contact-block {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    padding: 60px;
    text-align: center;
}

.contact-text {
    font-size: 22px;
    margin-bottom: 20px;
    color: #c0c0c0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    padding: 15px 40px;
    border: 2px solid #2a2a2a;
    transition: 0.2s;
    background: rgba(0,0,0,0.3);
}

.contact-link:hover {
    border-color: #c41e1e;
    background: rgba(196,30,30,0.1);
}

.contact-link i {
    color: #c41e1e;
    font-size: 28px;
}

.contact-note {
    margin-top: 40px;
    color: #505050;
    font-size: 14px;
}

/* ========== ПОДВАЛ (СТИЛИ ПОДВАЛА!) ========== */
.footer {
    text-align: center;
    padding: 40px;
    color: #505050;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    border-top: 1px solid #1e1e1e;
}

/* ========== ПОЛНАЯ ПЕРЕРАБОТКА МОБИЛЬНОЙ ВЕРСИИ ========== */
@media (max-width: 768px) {
    /* Контейнер */
    .container {
        padding: 0 20px;
    }

    /* HERO БЛОК - главная проблема */
    .hero {
        padding: 60px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.2;
        text-align: center;
    }

    .hero-accent {
        text-align: center;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
        padding-left: 15px;
        margin-bottom: 30px;
    }

    /* Статистика в hero */
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .stat-block {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .hero-quote {
        padding: 25px;
        font-size: 16px;
    }

    .quote-with-planet {
        flex-direction: column;
        gap: 20px;
    }

    .quote-text {
        text-align: center;
        font-size: 16px;
    }

    /* СЕКЦИИ */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 40px;
    }

    .section-title span {
        font-size: 14px;
        padding: 4px 10px;
    }

    /* О СЕБЕ */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 25px;
    }

    .about-card h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .about-list li {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .about-highlight {
        font-size: 18px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    /* ОПЫТ - карточки */
    .exp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exp-item {
        padding: 25px;
    }

    .exp-header {
        flex-direction: column;
        gap: 5px;
    }

    .exp-title {
        font-size: 20px;
    }

    .exp-date {
        font-size: 14px;
    }

    .exp-desc li {
        font-size: 14px;
    }

    /* НАВЫКИ */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-group {
        padding: 25px;
    }

    .skill-group h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Инструменты */
    .tools-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
    }

    .tools-icons {
        gap: 15px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tool-item {
        flex: 0 0 auto;
    }

    .tool-item span {
        font-size: 14px;
    }

    /* ДОСТИЖЕНИЯ - главная проблема */
    .achieve-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Принудительно 2 колонки */
        gap: 15px;
    }

    .achieve-card {
        padding: 20px 10px;
    }

    .achieve-card i {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .achieve-card span {
        font-size: 14px;
        line-height: 1.3;
        display: block;
        word-break: break-word;
    }

    /* MAJESTIC БЛОК */
    .majestic-block {
        padding: 30px 20px;
    }

    .majestic-block h2 {
        font-size: 28px;
    }

    .majestic-sub {
        font-size: 16px;
    }

    .majestic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .majestic-item {
        padding-left: 15px;
    }

    .majestic-item .num {
        font-size: 36px;
    }

    .majestic-item p {
        font-size: 16px;
    }

    .majestic-item small {
        font-size: 13px;
    }

    .majestic-button a {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* КОНТАКТЫ */
    .contact-block {
        padding: 40px 20px;
    }

    .contact-text {
        font-size: 18px;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
        margin: 30px 0;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 18px;
    }

    .contact-link i {
        font-size: 22px;
    }

    .contact-note {
        font-size: 13px;
    }

    /* ПОДВАЛ */
    .footer {
        padding: 30px 20px;
        font-size: 12px;
    }
}

/* Дополнительно для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Достижения - чуть меньше отступы */
    .achieve-grid {
        gap: 10px;
    }

    .achieve-card {
        padding: 15px 5px;
    }

    .achieve-card i {
        font-size: 28px;
    }

    .achieve-card span {
        font-size: 12px;
    }

    .tools-icons {
        gap: 12px;
    }

    .tool-item i {
        font-size: 24px;
    }

    .tool-item span {
        font-size: 13px;
    }
}

/* ========== БУРГЕР-МЕНЮ ========== */
@media (max-width: 768px) {
    /* Показываем бургер */
    .burger {
        display: flex !important;
    }
    
    /* Прячем обычную навигацию */
    .nav-links {
        display: none !important;
    }
    
    /* Прячем кнопку "Связь" в навбаре на мобилках */
    .btn-outline-nav {
        display: none !important;
    }
    
    /* Стили для открытого меню */
    .mobile-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0c0c0c;
        border-bottom: 2px solid #c41e1e;
        z-index: 99;
    }
    
    .mobile-menu a {
        display: block;
        padding: 15px 30px;
        color: #e5e5e5;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        border-bottom: 1px solid #2a2a2a;
    }
    
    .mobile-menu a:hover {
        background: #c41e1e;
        color: #0c0c0c;
    }
    
    /* Анимация бургера (чтоб красиво было) */
    .burger span {
        transition: 0.3s;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/* ========== УВЕДОМЛЕНИЕ О КОПИРОВАНИИ ========== */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #c41e1e;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 0 30px rgba(196, 30, 30, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .copy-toast {
        bottom: 20px;
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ========== МОДАЛКА В СТИЛЕ САЙТА ========== */
.meme-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.4s ease;
    border: 2px solid #c41e1e;
    box-shadow: inset 0 0 100px rgba(196, 30, 30, 0.1);
}

.meme-modal.show {
    display: flex;
}

.meme-content {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

/* Эффект сетки как на сайте */
.meme-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(196, 30, 30, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 30, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

#memeImage {
    max-width: 85vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 3px solid #c41e1e;
    box-shadow: 
        0 0 50px rgba(196, 30, 30, 0.3),
        inset 0 0 30px rgba(196, 30, 30, 0.2);
    position: relative;
    background: #0f0f0f;
    padding: 5px;
}

/* Рамка как в карточках опыта */
#memeImage::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid rgba(196, 30, 30, 0.3);
    pointer-events: none;
}

.meme-timer {
    color: #c0c0c0;
    font-size: 16px;
    margin-top: 30px;
    font-family: 'Inter', monospace;
    letter-spacing: 2px;
    font-weight: 500;
    background: #0f0f0f;
    padding: 12px 30px;
    display: inline-block;
    border: 1px solid #2a2a2a;
    position: relative;
    text-transform: uppercase;
}

/* Красный акцент на таймере как в заголовках */
.meme-timer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #c41e1e;
}

.meme-timer::after {
    content: '....';
    margin-right: 10px;
    filter: drop-shadow(0 0 8px #c41e1e);
}

/* Кнопка закрытия (в стиле сайта) */
.meme-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #c0c0c0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #2a2a2a;
    background: #0f0f0f;
    transition: 0.2s;
    z-index: 10000;
}

.meme-close:hover {
    border-color: #c41e1e;
    color: #c41e1e;
    background: #1a1a1a;
}

.meme-close i {
    margin-right: 8px;
    color: #c41e1e;
}

/* Анимации */
@keyframes modalFadeIn {
    from { 
        opacity: 0;
        transform: scale(0.98);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .meme-content {
        padding: 20px;
    }
    
    #memeImage {
        max-width: 95vw;
        max-height: 65vh;
    }
    
    .meme-timer {
        font-size: 14px;
        padding: 10px 20px;
        margin-top: 20px;
    }
    
    .meme-close {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* ========== АНИМАЦИЯ ПЕЧАТИ ========== */
.hero-description, .quote-text {
    min-height: 4.5em; /* Чтобы не прыгал экран */
    position: relative;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.stat-number {
    transition: all 0.2s ease;
}

.majestic-block h2 .amp {
    font-size: 0.7em;
    vertical-align: middle;
    margin: 0 0.1em;
}

.majestic-block {
    animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 20px rgba(196,30,30,0.2); }
    50% { box-shadow: 0 0 40px rgba(196,30,30,0.5); }
    100% { box-shadow: 0 0 20px rgba(196,30,30,0.2); }
}

