﻿@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 40px 20px;
}
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #242030; 
    background: linear-gradient(135deg, #242030, #16121c, #261b2e, #1f1424, #0e0d11);
    background-size: 300% 300%;
    animation: slowWave 14s ease-in-out infinite alternate;
}

@keyframes slowWave {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.container {
    width: 100%;
    max-width: 780px; 
    margin: 0 auto;
}
.glass-card {
    position: relative;
    background: #3522505c !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 1px 1px 20px 0px rgba(0,0,0,0.4);
	-webkit-box-shadow: 1px 1px 20px 0px rgba(0,0,0,0.4);
	-moz-box-shadow: 1px 1px 20px 0px rgba(0,0,0,0.4);
	overflow: hidden;
	animation: cardFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
	border: 1px solid transparent;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px; 
    padding: 2px;
    background: radial-gradient(
        240px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(66, 133, 244, 0.9) 0%,    /* Google Blue — мягкое начало в центре */
        rgba(155, 81, 224, 0.7) 25%,   /* Purple — растянутый переход */
        rgba(233, 30, 99, 0.6) 50%,    /* Pink — деликатное свечение */
        rgba(251, 188, 5, 0.4) 75%,    /* Yellow — полупрозрачный слой */
        rgba(52, 168, 83, 0.15) 90%,   /* Green — почти растворившийся край */
        transparent 100%               /* Абсолютная прозрачность без резкой границы */
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    
    pointer-events: none;
    z-index: 2;
    
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.glass-card:hover::before {
    opacity: 1;
}
.glass-card::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: rgba(26, 20, 31, 0.75); 
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 27px; 
    z-index: -1; /* Маска лежит строго между текстом и радугой */
}
@keyframes waveRainbow {
    to {
        --angle: 360deg;
    }
}
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Карточка плавно поднимается на 20px вверх */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.profile-block {
    display: flex;
    flex-direction: row-reverse; 
    align-items: center;
    gap: 40px;
    text-align: left; 
    margin-bottom: 30px;
}

.profile-block, main {
    position: relative;
    z-index: 1; /* Принудительно поднимает контент, фото и кнопки над радужными слоями */
}
.profile-photo {
    flex: 0 0 220px; 
    width: 220px;
    height: 220px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 20px; 
    box-shadow: 1px 1px 20px 0px rgba(0,0,0,0.4);
-webkit-box-shadow: 1px 1px 20px 0px rgba(0,0,0,0.4);
-moz-box-shadow: 1px 1px 20px 0px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-info {
    flex: 1;
}
h1 {
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #ffffff;
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.notice {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 25px;
    text-align: left;
}
.buttons-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px;
}
/* Кнопки с полупрозрачным фоном по умолчанию */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    padding: 16px 20px;
    background-color: rgba(71, 54, 97, 0.15); 
    
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px; /* Отступ до текста */
    flex-shrink: 0;
}
.btn:hover {
    background-color: #ffffff; /* Полностью белый фон при наведении */
    color: #2d2d2d;
    transform: translateY(-2px);
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn:active {
    transform: translateY(0);
}
@media (max-width: 640px) {
    body {
        padding: 15px;
    }
    
    .glass-card {
		background: rgba(25://, 25, 28, 0.85); 
        padding: 30px 20px;
    }

    .profile-block {
        flex-direction: column; 
        text-align: center; 
        gap: 25px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .profile-photo img {
        border-radius: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .notice {
        text-align: center; 
    }

    .btn {
        flex: 1 1 100%; 
        padding: 14px 20px;
    }
}
@supports not (backdrop-filter: blur(16px)) {
    .glass-card {
        background-color: #3522505c !important; 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    }
}
@-moz-document url-prefix() {
    .glass-card {
        background-color: #3522505c !important;
    }
}

@supports not (backdrop-filter: blur(16px)) {
    .glass-card::after {
        background: #16121c !important;
    }
}
