/* Общие сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Шапка — больше нет чёрной полосы */
header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Кнопка-стрелка */
.arrow-btn {
    font-size: 48px;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.arrow-btn:hover {
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffaa00;
    transform: scale(1.1);
}

/* Бренд P/G */
.brand {
    font-size: 72px;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.p-yellow {
    color: #e6ff00;
}

.slash {
    color: #808080;
}

.g-red {
    color: #ff4444;
}

/* Блок профиля (фото + ник) */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0 10px;
}

/* Фото */
.photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #444;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: box-shadow 0.3s;
}

.photo:hover {
    box-shadow: 0 0 30px rgba(230,255,0,0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Никнейм */
.nickname {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 500;
    color: #e6ff00; /* кислотно-жёлтый для соответствия бренду */
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(230,255,0,0.5);
}

/* Био */
.bio {
    max-width: 600px;
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
    line-height: 1.6;
    color: #ccc;
    font-size: 18px;
}

/* Скрытый чекбокс */
.hobby-checkbox {
    display: none;
}

/* Блок увлечений — общий контейнер с фоном и скруглением */
.hobbies {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 80px;
    padding: 0;
    background-color: #2a2a2a;
    border-radius: 40px;
    transition: background-color 0.3s;
    overflow: hidden;
}

/* Заголовок (кликабельный) */
.hobbies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    font-size: 24px;
    color: #ddd;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

/* Стрелка */
.arrow {
    font-size: 24px;
    transition: transform 0.4s ease;
}

/* Контейнер для списка увлечений (скрыт по умолчанию) */
.hobby-list-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* Сетка увлечений */
.hobby-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 30px 30px 30px;
}

/* Карточка увлечения (почти квадратная) */
.hobby-item {
    background-color: #3a3a3a;
    color: #ccc;
    padding: 20px 10px;
    border-radius: 4px;
    font-size: 18px;
    border: 1px solid #555;
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.hobby-item:hover {
    background-color: #e6ff00;
    color: #1a1a1a;
    border-color: #e6ff00;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(230, 255, 0, 0.2);
}

/* Состояние при раскрытом чекбоксе */
.hobby-checkbox:checked + .hobbies .hobby-list-container {
    max-height: 400px;
}

.hobby-checkbox:checked + .hobbies .arrow {
    transform: rotate(180deg);
}

.hobby-checkbox:checked + .hobbies .hobbies-header {
    border-bottom-color: #555;
}

/* Подвал */
footer {
    margin-top: auto;
    width: 100%;
    padding: 60px 20px 30px;
    border-top: 1px solid #333;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    color: #aaa;
    font-size: 18px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    transform: translateY(-2px);
}

.copyright {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Адаптивность */
@media (max-width: 600px) {
    header {
        padding: 15px 20px;
    }
    .brand {
        font-size: 48px;
    }
    .arrow-btn {
        font-size: 36px;
    }
    .photo {
        width: 180px;
        height: 180px;
    }
    .nickname {
        font-size: 20px;
        margin-top: 10px;
    }
    .bio {
        font-size: 16px;
    }
    .hobbies {
        margin-bottom: 50px;
    }
    .hobbies-header {
        font-size: 20px;
        padding: 12px 20px;
    }
    .arrow {
        font-size: 20px;
    }
    .hobby-list {
        padding: 0 20px 20px 20px;
        gap: 10px;
    }
    .hobby-item {
        font-size: 16px;
        padding: 15px 10px;
        min-height: 70px;
    }
    .social-links {
        gap: 20px;
    }
    .social-link {
        font-size: 16px;
    }
    footer {
        padding: 40px 15px 20px;
    }
}

/* ===== СТРАНИЦА РАЗРАБОТКИ (ОБНОВЛЁННАЯ) ===== \
Потом его удалить!*/
/* ===== ОБЩИЕ СБРОСЫ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== ШАПКА ===== */
header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.arrow-btn {
    font-size: 48px;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.arrow-btn:hover {
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffaa00;
    transform: scale(1.1);
}

.brand {
    font-size: 72px;
    font-weight: bold;
    letter-spacing: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.p-yellow { color: #e6ff00; }
.slash { color: #808080; }
.g-red { color: #ff4444; }

/* ===== ПРОФИЛЬ (ГЛАВНАЯ) ===== */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0 10px;
}

.photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #444;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: box-shadow 0.3s;
}

.photo:hover {
    box-shadow: 0 0 30px rgba(230,255,0,0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nickname {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 500;
    color: #e6ff00;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(230,255,0,0.5);
}

/* ===== БИО ===== */
.bio {
    max-width: 600px;
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
    line-height: 1.6;
    color: #ccc;
    font-size: 18px;
}

/* ===== УВЛЕЧЕНИЯ (ГЛАВНАЯ) ===== */
.hobby-checkbox { display: none; }

.hobbies {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 80px;
    padding: 0;
    background-color: #2a2a2a;
    border-radius: 40px;
    transition: background-color 0.3s;
    overflow: hidden;
}

.hobbies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    font-size: 24px;
    color: #ddd;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.arrow {
    font-size: 24px;
    transition: transform 0.4s ease;
}

.hobby-list-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.hobby-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 30px 30px 30px;
}

.hobby-item {
    background-color: #3a3a3a;
    color: #ccc;
    padding: 20px 10px;
    border-radius: 4px;
    font-size: 18px;
    border: 1px solid #555;
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.hobby-item:hover {
    background-color: #e6ff00;
    color: #1a1a1a;
    border-color: #e6ff00;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(230,255,0,0.2);
}

.hobby-checkbox:checked + .hobbies .hobby-list-container {
    max-height: 400px;
}

.hobby-checkbox:checked + .hobbies .arrow {
    transform: rotate(180deg);
}

.hobby-checkbox:checked + .hobbies .hobbies-header {
    border-bottom-color: #555;
}

/* ===== ПОДВАЛ (ОБЩИЙ) ===== */
footer {
    margin-top: auto;
    width: 100%;
    padding: 60px 20px 30px;
    border-top: 1px solid #333;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    color: #aaa;
    font-size: 18px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    transform: translateY(-2px);
}

.copyright {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* ===== СТРАНИЦА РАЗРАБОТКИ (ДАТА-ЦЕНТР) ===== */
.datacenter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 30px 20px;
    flex: 1;
}

.datacenter-card {
    background: #1e1e1e;
    border-radius: 50px;
    padding: 40px 30px;
    width: 100%;
    box-shadow: 0 20px 30px rgba(0,0,0,0.7), 0 0 0 2px #00aaff inset;
    border-left: 10px solid #ffaa00;
    position: relative;
}

.dev-banner {
    background: #ffaa00;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-radius: 60px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px #ffaa00;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.dev-banner i {
    font-size: 32px;
    color: #000;
}

.dc-title {
    font-size: 36px;
    color: #ffaa00;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #ffaa00;
    font-weight: 400;
    letter-spacing: 3px;
}

.dc-scene {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.server-rack {
    width: 180px;
    background: #333;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 10px 0 #222, 0 15px 15px rgba(0,0,0,0.5);
    border-left: 4px solid #555;
    border-right: 4px solid #555;
}

.rack-top {
    height: 15px;
    background: #444;
    border-bottom: 2px solid #666;
}

.rack-body {
    padding: 10px 8px;
    background: #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drive {
    height: 25px;
    background: #444;
    border-radius: 4px;
    border-left: 4px solid #888;
    transition: 0.2s;
    position: relative;
}

.drive::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #0f0;
    border-radius: 50%;
    opacity: 0.3;
}

.blink-1::after { background: #ff0; animation: blink 1s infinite; }
.blink-2::after { background: #f00; animation: blink 0.7s infinite; }
.blink-3::after { background: #0ff; animation: blink 1.3s infinite; }

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.rack-bottom {
    height: 20px;
    background: #444;
    border-top: 2px solid #666;
}

.programmer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: programmerMove 2s infinite alternate;
}

@keyframes programmerMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.programmer i {
    font-size: 90px;
    color: #ffaa00;
    filter: drop-shadow(0 10px 5px rgba(0,0,0,0.5));
}

.speech-bubble {
    background: #fff;
    color: #000;
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.programmer-tools {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    color: #aaa;
    font-size: 24px;
}

.programmer-tools i {
    font-size: 24px;
    color: #ccc;
    animation: toolWiggle 1.5s infinite;
}

@keyframes toolWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

.cables {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    height: 40px;
}

.cable {
    width: 60px;
    height: 20px;
    background: #555;
    border-radius: 20px;
    position: relative;
}

.cable::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 2px;
    width: 20px;
    height: 16px;
    background: #777;
    border-radius: 50%;
}

.cable.correct {
    background: #2ecc71;
    box-shadow: 0 0 15px #2ecc71;
}

.cable.wrong {
    background: #e74c3c;
    box-shadow: 0 0 15px #e74c3c;
    opacity: 0.7;
}

.cable.wrong::before {
    background: #c0392b;
}

.dc-text {
    font-size: 22px;
    text-align: center;
    color: #ccc;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 60px;
    margin: 30px 0;
}

.sarcasm {
    color: #ff4444;
    font-style: italic;
    text-decoration: underline wavy #ff4444;
}

.rack-progress {
    margin: 30px 0;
    text-align: center;
    color: #aaa;
    font-size: 18px;
}

.progress-bar-rack {
    width: 80%;
    height: 30px;
    background: #333;
    border-radius: 30px;
    margin: 10px auto;
    overflow: hidden;
    border: 1px solid #ffaa00;
}

.progress-fill-rack {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    color: white;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    border-radius: 30px 0 0 30px;
}

.dc-footer-note {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-top: 20px;
}

.dc-footer-note i {
    color: #e74c3c;
    margin: 0 10px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 600px) {
    header {
        padding: 15px 20px;
    }
    .brand {
        font-size: 48px;
    }
    .arrow-btn {
        font-size: 36px;
    }
    .photo {
        width: 180px;
        height: 180px;
    }
    .nickname {
        font-size: 20px;
    }
    .bio {
        font-size: 16px;
    }
    .hobbies {
        margin-bottom: 50px;
    }
    .hobbies-header {
        font-size: 20px;
        padding: 12px 20px;
    }
    .arrow {
        font-size: 20px;
    }
    .hobby-list {
        padding: 0 20px 20px 20px;
        gap: 10px;
    }
    .hobby-item {
        font-size: 16px;
        padding: 15px 10px;
        min-height: 70px;
    }
    .social-links {
        gap: 20px;
    }
    .social-link {
        font-size: 16px;
    }
    footer {
        padding: 40px 15px 20px;
    }

    /* Дата-центр на мобильных */
    .datacenter-card {
        padding: 30px 20px;
    }
    .dev-banner {
        font-size: 18px;
        padding: 10px;
        gap: 10px;
    }
    .dev-banner i {
        font-size: 24px;
    }
    .dc-title {
        font-size: 28px;
    }
    .server-rack {
        width: 150px;
    }
    .programmer i {
        font-size: 70px;
    }
    .speech-bubble {
        font-size: 12px;
        padding: 5px 10px;
    }
    .dc-text {
        font-size: 18px;
    }
    .progress-bar-rack {
        width: 90%;
    }
}