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

        html, body {
            margin: 0;
            padding: 0;
            background: transparent; /* фон уже задан ниже */
        }

        body {
            background-image: url('https://i.imgur.com/x8zTu5N.jpeg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            font-family: 'Inter', 'Segoe UI', 'Courier New', monospace;
            color: #ccc;
            line-height: 1.5;
            /* никаких отступов сверху */
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            pointer-events: none;
            z-index: 0;
        }

        /* ===== ТОЧНАЯ КОПИЯ ВЕРХНЕЙ ПАНЕЛИ ===== */
        .top-bar {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #0a0a0c;
            border-bottom: 1px solid #2a2a2a;
            padding: 0.7rem 2rem;          /* точно как на главной */
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
            /* без дополнительных ограничений — на всю ширину */
        }

        .left-group {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .avatar, .avatar-small {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid #5a2a2a;
            background: #111;
        }

        .nickname {
            font-weight: 500;
            font-size: 1.3rem;
            letter-spacing: 1px;
            color: #bc3f2e;
            text-shadow: 0 0 3px rgba(188, 63, 46, 0.3);
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: #bbb;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
            letter-spacing: 1px;
            border-bottom: 1px solid transparent;
        }

        .nav-links a:hover {
            color: #bc3f2e;
            border-bottom-color: #bc3f2e;
        }

        /* ===== ОСНОВНОЙ КОНТЕНТ — без верхнего отступа ===== */
        .content-wrapper {
            position: relative;
            z-index: 1;
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 1.5rem;   /* убран padding-top */
        }

        .card-container {
            display: flex;
            gap: 2rem;
            background: rgba(10, 10, 12, 0.9);
            border: 1px solid #2a2a2a;
            padding: 1rem 2rem;   /* здесь верхний отступ для карточки */
            margin-top: 0.5rem;   /* небольшой отступ от панели — можно убрать или оставить */
        }

        /* остальные стили без изменений */
        .card-image {
            flex: 0 0 380px;
            width: 380px;
            max-width: 100%;
            overflow-x: hidden;
        }

        .card-image img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            border: 1px solid #3a3a3a;
            box-shadow: 0 8px 20px rgba(0,0,0,0.5);
            display: block;
        }

        .download-png-btn {
            display: block;
            background: transparent;
            border: 1px solid #bc3f2e;
            color: #bc3f2e;
            padding: 0.5rem 0.8rem;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            text-align: center;
            letter-spacing: 1px;
            width: 100%;
            margin-top: 0.8rem;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .download-png-btn:hover {
            background: rgba(188, 63, 46, 0.2);
            border-color: #bc3f2e;
            color: #bc3f2e;
        }

        .card-dates {
            width: 100%;
            margin-top: 0.8rem;
            text-align: center;
            font-family: 'Courier New', monospace;
            font-size: 0.7rem;
            color: #999;
            background: rgba(0, 0, 0, 0.4);
            padding: 0.4rem 0;
            border-radius: 4px;
            border: 1px solid #2a2a2a;
            box-sizing: border-box;
        }

        .card-dates div {
            line-height: 1.3;
        }

        .card-created {
            margin-bottom: 0.1rem;
        }

        .card-updated {
            color: #bc3f2e;
        }

        .card-info {
            flex: 1;
            min-width: 0;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }

        .card-name {
            font-size: 2rem;
            color: #ffffff;
            padding-left: 0;
        }

        .tabs {
            display: flex;
            gap: 0.5rem;
            border-bottom: 1px solid #3a3a3a;
            margin-bottom: 0.75rem;
        }

        .tab-btn {
            background: transparent;
            border: none;
            color: #aaa;
            padding: 0.4rem 1rem;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            cursor: pointer;
            transition: 0.2s;
            border-bottom: 2px solid transparent;
        }

        .tab-btn:hover,
        .tab-btn.active {
            color: #bc3f2e;
            border-bottom-color: #bc3f2e;
        }

        .tab-content {
            display: none;
            padding: 0;
        }

        .tab-content.active {
            display: block;
        }

        .data-block {
            background: #0a0a0c;
            border: 1px solid #2a2a2a;
            margin-bottom: 1rem;
        }

        .data-header {
            background: #1a1a1c;
            padding: 0.4rem 1rem;
            font-weight: bold;
            color: #bc3f2e;
            border-bottom: 1px solid #2a2a2a;
            font-family: monospace;
            font-size: 0.9rem;
        }

        .data-content {
            padding: 0.75rem;
            max-height: 300px;
            overflow-y: auto;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .greeting-item {
            background: #0a0a0c;
            border-left: 2px solid #bc3f2e;
            margin-bottom: 0.75rem;
            padding: 0.5rem 1rem;
        }

        .greeting-title {
            color: #bc3f2e;
            font-size: 0.8rem;
            margin-bottom: 0.3rem;
        }

        .overview-text {
            background: #0a0a0c;
            padding: 0.5rem 1rem;
            line-height: 1.6;
        }

        .overview-text h2 {
            margin-top: 0;
            margin-bottom: 0.75rem;
            color: #ffffff;
        }

        .overview-text p {
            margin-bottom: 0.75rem;
        }

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

        .overview-text h3 {
            color: #ffffff;
            margin-bottom: 0.5rem;
            margin-top: 0;
        }

        .overview-text ul,
        .overview-text ol {
            margin: 0.3rem 0 0.75rem 2rem;
        }

        .overview-text li {
            margin-bottom: 0.2rem;
        }

        .overview-text hr {
            margin: 0.75rem 0;
            border-color: #3a3a3a;
        }

        .footer {
    width: 100vw;           /* на всю ширину окна */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: left;
    padding: 1.5rem 2rem;   /* такие же отступы, как у .top-bar */
    font-size: 0.7rem;
    color: #777;
    border-top: 1px solid #222;
    background: transparent; /* или #0a0a0c, если нужен фон – но у вас фон от body */
    box-sizing: border-box;
}

        @media (max-width: 800px) {
            .card-container {
                flex-direction: column;
                padding: 0.75rem;
            }
            .card-image {
                flex: 0 0 auto;
                width: auto;
                max-width: 380px;
                margin: 0 auto;
            }
            .top-bar {
                padding: 0.7rem 1rem;
            }
            .card-header {
                flex-direction: column;
                align-items: flex-start;
            }
            .content-wrapper {
                padding: 0 1rem;
            }
        }

        @media (max-width: 700px) {
            .top-bar {
                padding: 0.6rem 1rem;
            }
            .avatar, .avatar-small {
                width: 40px;
                height: 40px;
            }
            .nickname {
                font-size: 1.1rem;
            }
        }
    </style>