/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background-color: #f6f8fa;
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== ТРЕНДОВЫЙ ФОН ==================== */
.bg-grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.bg-blur-spots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.bg-blur-spots::before,
.bg-blur-spots::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.5;
}

.bg-blur-spots::before {
    background: radial-gradient(circle, #e0f2fe 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-blur-spots::after {
    background: radial-gradient(circle, #f3e8ff 0%, transparent 70%);
    bottom: -100px;
    left: -200px;
}

.bg-grain-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://w3.org id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================================= */

.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 100px 24px; /* Отрегулировали отступы для ПК */
}

/* Главный заголовок */
.minimal-header {
    margin-bottom: 60px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #16a34a;
    background-color: rgba(220, 252, 231, 0.6);
    border: 1px solid rgba(22, 163, 74, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.status-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #16a34a;
    border-radius: 50%;
}

.minimal-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111111;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-lead {
    font-size: 1.35rem;
    color: #4b5563;
    max-width: 750px;
    font-weight: 400;
}

/* БЛОК «О СЕБЕ» */
.about-section {
    width: 100%;
    margin-bottom: 60px;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.9);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.about-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0f2fe, #f3e8ff);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.about-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111111;
}

.about-subtitle {
    font-size: 0.9rem;
    color: #4f46e5;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 16px;
}

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

/* Кнопка Проектов */
.about-actions {
    margin-top: 28px;
    display: flex;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #24292f;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(36, 41, 47, 0.15);
}

.btn-github:hover {
    background-color: #121518;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 41, 47, 0.25);
}

/* Сетка карточек */
.minimal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.grid-card {
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(229, 231, 235, 0.8);
    padding: 40px 32px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.grid-card:hover {
    background-color: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 24px;
}

.grid-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.grid-card p {
    font-size: 1rem;
    color: #4b5563;
}

/* Финальный блок текста */
.final-text {
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    padding-top: 60px;
    margin-bottom: 40px; /* Отступ перед нижней панелью */
}

.final-text h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.final-text p {
    color: #4b5563;
    font-size: 1.1rem;
}

/* Панель консультации */
.bottom-action-bar {
    position: fixed; /* На ПК она красиво парит внизу экрана */
    bottom: 28px;
    left: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.bar-container {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 28px;
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
}

.bar-info {
    display: flex;
    flex-direction: column;
}

.bar-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.bar-subtitle {
    color: #9ca3af;
    font-size: 0.88rem;
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #111111;
    text-decoration: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-minimal:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
    .minimal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .minimal-header h1 {
        font-size: 2.4rem;
    }

    .site-wrapper {
        padding: 40px 16px 40px 16px; /* Никаких гигантских пустых отступов */
    }

    .about-card {
        padding: 24px;
    }

    .about-actions {
        width: 100%;
    }

    .btn-github {
        width: 100%;
        justify-content: center;
    }

    .bottom-action-bar {
        position: static ;
        margin-top: 20px;
        padding: 0;
    }

    .bar-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        border-radius: 20px;
        padding: 24px 20px;
        background-color: #111827; /* На телефоне делаем сплошным для четкости */
    }

    .btn-minimal {
        width: 100%;
        justify-content: center;
    }
}
