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

:root {
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --bg-card-content: #ffffff;
    --link-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --link-background-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --link-title-color: #ffffff;
    --text-color: #1a202c;
    --avatar-title-color: #4a5568;
    --heading-color: #2d3748;
    --block-radius: 16px;
    --link-border-radius: 12px;
    --link-offset: 6px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html {
    min-height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-background {
    position: relative;
    min-height: 100vh;
    background: transparent;
}

.page-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.page-background-extended {
    position: relative;
    min-height: 100vh;
}

.page-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.section-main {
    display: flex;
    flex-direction: column;
    gap: var(--link-offset);
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.max-page-container-lg {
    max-width: 600px;
    margin: 0 auto;
}

.is-flex-fullheight {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.blocks-section {
    width: 100%;
}

.page-container {
    width: 100%;
}


/* Avatar Block */
.block-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.block-avatar-history {
    margin-bottom: 0.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.text-avatar {
    text-align: center;
    margin-top: 0.25rem;
}

.text-avatar div {
    font-size: 18px;
    font-weight: 700;
    color: var(--avatar-title-color);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

/* Text Block */
.block-text {
    text-align: center;
    margin: 0.5rem 0;
}

.block-text.is-main-heading {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color: var(--heading-color);
    margin: 1rem 0 0.5rem 0;
    letter-spacing: -0.2px;
    padding: 0 0.5rem;
    opacity: 0.95;
}

.block-text.is-heading {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    background: var(--link-background);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.75rem 0;
    letter-spacing: -0.5px;
}

/* Break Block */
.block-break {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.block-break-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
}

.block-break-inner svg {
    width: 24px;
    height: 24px;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.block-break-inner:hover svg {
    opacity: 0.4;
    transform: scale(1.1);
}

/* Link Block */
.block-link {
    width: 100%;
}

.btn-link {
    display: block;
    width: 100%;
    text-decoration: none;
    background: var(--link-background);
    color: var(--link-title-color);
    border-radius: var(--link-border-radius);
    padding: 1.125rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-link:hover::before {
    left: 100%;
}

.btn-link:hover {
    background: var(--link-background-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-link:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-link-title {
    color: var(--link-title-color);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.btn-link .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation for blocks */
.block-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.block-item:nth-child(1) { animation-delay: 0.1s; }
.block-item:nth-child(2) { animation-delay: 0.2s; }
.block-item:nth-child(3) { animation-delay: 0.3s; }
.block-item:nth-child(4) { animation-delay: 0.4s; }
.block-item:nth-child(5) { animation-delay: 0.5s; }
.block-item:nth-child(6) { animation-delay: 0.6s; }
.block-item:nth-child(7) { animation-delay: 0.7s; }
.block-item:nth-child(8) { animation-delay: 0.8s; }
.block-item:nth-child(9) { animation-delay: 0.9s; }
.block-item:nth-child(10) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
    }

    .max-page-container-lg {
        max-width: 100%;
    }

    .section-main {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .block-text.is-main-heading {
        font-size: 20px;
    }

    .block-text.is-heading {
        font-size: 26px;
    }

    .btn-link {
        padding: 1rem 1.5rem;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 1rem 0.75rem;
    }

    .section-main {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .block-text.is-main-heading {
        font-size: 18px;
    }

    .block-text.is-heading {
        font-size: 22px;
    }

    .profile-avatar {
        width: 65px;
        height: 65px;
    }

    .btn-link {
        padding: 0.95rem 1.25rem;
        font-size: 15px;
    }
}
