
/* ===== БАЗА (mobile-first) ===== */
body {
    margin: 0;
    padding: 20px;

    background-color: #0a1b33;
    background-image: radial-gradient(#132d52 1px, transparent 1px);
    background-size: 18px 18px;

    font-family: "Georgia", serif;
    color: #d7f4ff;

    font-size: clamp(16px, 4vw, 22px);
}

/* ===== ОБЩЕЕ ИСПРАВЛЕНИЕ КАРТИНОК ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== ЛЕЙАУТ ===== */
.layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.left {
    width: 100%;
}

.right-images {
    display: none;
}

/* ===== КАРТИНКИ (мобилка + базово) ===== */

.mobile-img {
    display: block;
    width: 100%;
    margin: 15px 0;

    border: 2px solid rgba(120, 220, 255, 0.6);

    box-shadow:
        0 0 12px rgba(0, 200, 255, 0.25),
        inset 0 0 10px rgba(0, 200, 255, 0.08);

    transition: transform 0.4s ease;
}

/* ПК картинки */
.right-images img {
    width: 100%;
    border: 2px solid rgba(120, 220, 255, 0.6);

    box-shadow:
        0 0 12px rgba(0, 200, 255, 0.25),
        inset 0 0 10px rgba(0, 200, 255, 0.08);

    opacity: 0.85;

    transform: rotate(-2deg) scale(1);

    transition: transform 0.4s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

.right-images img:hover {
    opacity: 1;
    transform: rotate(0deg) scale(1.05);

    box-shadow:
        0 0 22px rgba(0, 220, 255, 0.6),
        inset 0 0 12px rgba(0, 220, 255, 0.2);
}

/* ===== КНОПКИ ===== */
.btn {
    display: block;
    margin: 10px 0;
    padding: 12px 20px;

    border: 2px solid rgba(120, 220, 255, 0.5);
    border-radius: 10px;

    background: rgba(0, 25, 45, 0.55);

    color: #c8f3ff;
    text-decoration: none;
    font-weight: bold;

    text-align: center;

    transition: transform 0.4s ease,
                box-shadow 0.3s ease,
                background 0.3s ease;
}

/* hover */
.btn:hover {
    transform: scale(1.05);

    background: rgba(0, 50, 80, 0.75);

    box-shadow:
        0 0 18px rgba(0, 200, 255, 0.6),
        inset 0 0 12px rgba(120, 220, 255, 0.2);
}

/* ===== ТЕКСТ ===== */
.page p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.nickname {
    color: #ff7a7a;
    font-weight: bold;
}

strong {
    color: #ff7a7a;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;

    /* 🌑 тёмный полупрозрачный фон */
    background: rgba(0, 10, 25, 0.75);
    backdrop-filter: blur(6px);

    border-top: 2px solid rgba(120, 220, 255, 0.3);

    position: relative;
    overflow: hidden;
}

/* ===== BADGES ===== */
.friends-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

html {
    scroll-behavior: smooth;
}

/* ========================= */
/* 🏷 БЕЙДЖИКИ */
/* ========================= */

.friends-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* сами бейджи */
.badge img {
    width: 88px;
    height: 31px;

    border: 1px solid rgba(120, 220, 255, 0.4);

    opacity: 0.85;

    box-shadow: 0 0 8px rgba(0, 200, 255, 0.15);

    transform: rotate(-3deg);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}

/* hover эффект */
.badge img:hover {
    opacity: 1;
    transform: rotate(0deg) scale(1.08);

    box-shadow: 0 0 16px rgba(0, 220, 255, 0.6);
}

/* лёгкое “дыхание” (анимация) */
.badge img {
    animation: badgeFloat 6s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%   { transform: rotate(-3deg) translateY(0px); }
    50%  { transform: rotate(-3deg) translateY(-3px); }
    100% { transform: rotate(-3deg) translateY(0px); }
}

/* ========================= */
/* 💻 ПЛАНШЕТЫ */
/* ========================= */
@media (min-width: 768px) {

    body {
        padding: 30px 40px;
        font-size: clamp(16px, 2vw, 28px);
    }

    .friends-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .badge img {
        width: 88px;
    }
}

/* ========================= */
/* 💻 ПК */
/* ========================= */
@media (min-width: 1024px) {

    body {
        padding: 40px 120px;
        font-size: clamp(16px, 2vw, 40px);
    }

    .layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .left {
        flex: 1.1;
    }

    .right-images {
        display: flex;
        flex: 0.9;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-img {
        display: none;
    }

    .btn {
        display: inline-block;
        margin: 0 10px;
        transform: rotate(-20deg);
    }

    .btn:hover {
        transform: rotate(0deg) scale(1.05);
    }
    
    .btn-friends {
        transform: rotate(-20deg) translateY(35px);
    }
    
    .btn-homa {
        transform: rotate(-20deg) translateY(11px);
    }
}

/* ========================= */
/* 📱 МОБИЛКА ФИКС */
/* ========================= */
@media (max-width: 768px) {

    .btn {
        transform: none;
    }

    .mobile-img,
    .right-images img,
    .badge img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}