/* =========================================================
   ZUCOS PORTFOLIO — iOS / Liquid Glass inspired
   Здесь находятся ВСЕ визуальные стили сайта.
   ========================================================= */

:root {
    --background: #050505;
    --card: rgba(25, 25, 25, 0.62);
    --text: #ffffff;
    --secondary-text: rgba(255, 255, 255, 0.62);
    --accent: #ff1f1f;
    --accent-soft: rgba(255, 31, 31, 0.35);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    background: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "SF Pro Text", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ================= ФОН ================= */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.08), transparent 40%),
        #050505;
}

.background-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.18;
    will-change: transform;
}

.glow-1 {
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
}

.glow-2 {
    right: -300px;
    bottom: -250px;
    background: #ff0000;
}

.glow-3 {
    left: -300px;
    bottom: -250px;
    background: #550000;
}

/* ================= СТРАНИЦА ================= */

.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/* ================= КАРТОЧКА ================= */

.profile-card {
    position: relative;
    width: min(620px, 100%);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.035)
    );
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
}

/* ================= БАННЕР ================= */

.banner-container {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0000, #050505);
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease, opacity 0.4s ease;
}

.profile-card:hover .banner-image {
    transform: scale(1.035);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
}

/* ================= АВАТАР ================= */

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: -75px auto 0;
    z-index: 5;
}

.avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #080808;
    background: #101010;
    position: relative;
    z-index: 2;
}

.avatar-border {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        #ff0000,
        #ff5c5c,
        #700000,
        #ff0000
    );
    filter: drop-shadow(0 0 18px var(--accent-soft));
    z-index: 1;
    animation: avatarGlow 4s linear infinite;
}

@keyframes avatarGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= КОНТЕНТ ================= */

.profile-content {
    padding: 25px 35px 30px;
    text-align: center;
}

.profile-content h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 6px;
}

.profile-role {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-description {
    max-width: 440px;
    margin: 0 auto;
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 15px;
}

/* ================= СОЦСЕТИ ================= */

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.social-button {
    width: 47px;
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    touch-action: manipulation;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.social-button:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(255, 31, 31, 0.16);
    border-color: rgba(255, 31, 31, 0.4);
}

.social-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

.social-button[aria-label="Instagram"] svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

/* ================= КНОПКА СВЯЗИ ================= */

.contact-button {
    margin-top: 25px;
    height: 52px;
    padding: 0 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 40, 40, 0.45);
    border-radius: 18px;
    color: white;
    text-decoration: none;
    background: linear-gradient(
        135deg,
        rgba(255, 30, 30, 0.85),
        rgba(120, 0, 0, 0.8)
    );
    box-shadow: 0 10px 35px rgba(255, 0, 0, 0.16);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.28);
}

.contact-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ================= FOOTER ================= */

.profile-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

/* ================= СТРАНИЦА ОШИБОК ================= */

.error-card {
    padding: 60px 40px;
    text-align: center;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -6px;
    background: linear-gradient(135deg, #ff2424, #700000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 40px rgba(255, 31, 31, 0.35));
    user-select: none;
}

.error-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.error-description {
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 30px;
}

/* ================= МОБИЛЬНЫЙ ВИД ================= */

@media (max-width: 600px) {
    .page {
        padding: max(15px, env(safe-area-inset-top)) 15px 15px;
        align-items: flex-start;
    }

    .profile-card {
        border-radius: 28px;
        margin-top: 15px;
    }

    .banner-container {
        height: 190px;
    }

    .avatar-wrapper {
        width: 125px;
        height: 125px;
        margin-top: -62px;
    }

    .profile-content {
        padding: 20px 20px 25px;
    }

    .profile-content h1 {
        font-size: 29px;
    }

    .profile-description {
        font-size: 14px;
        max-width: 330px;
    }

    .socials {
        gap: 8px;
    }

    .social-button {
        width: 43px;
        height: 43px;
        border-radius: 14px;
    }

    .contact-button {
        width: 100%;
    }

    .profile-footer {
        padding: 15px 18px;
    }

    .error-card {
        padding: 45px 22px;
    }

    .error-code {
        font-size: 84px;
        letter-spacing: -4px;
    }

    .error-title {
        font-size: 21px;
    }

    .error-description {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

@media (max-width: 380px) {
    .banner-container {
        height: 165px;
    }

    .avatar-wrapper {
        width: 110px;
        height: 110px;
        margin-top: -55px;
    }

    .social-button {
        width: 40px;
        height: 40px;
    }

    .social-button svg {
        width: 18px;
        height: 18px;
    }

    .error-code {
        font-size: 68px;
    }

    .error-title {
        font-size: 19px;
    }
}

/* Уважение к системной настройке "уменьшить движение" */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}