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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #E5E5E5;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 20px 0 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background-color: #FFFFFF;
    border-radius: 16px 16px 0 0;
    padding: 40px 30px;
    padding-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    min-height: calc(100vh - 20px);
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    border: 2px solid #F0F0F0;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.short-description {
    font-size: 14px;
    color: #000000;
    margin: 12px 0 0 0;
    line-height: 1.5;
}

.button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007AFF;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    padding: 16px 20px;
    transition: background-color 0.3s ease;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    height: 58px;
    box-sizing: border-box;
}

.button-text-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.button-link:hover {
    background-color: #0056CC;
}

.button-link:active {
    background-color: #004499;
}

.videos-section {
    margin-top: 30px;
}

.videos-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.video-item:hover {
    opacity: 0.8;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

.video-caption {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
}

.button-text {
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.button-arrow {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-arrow svg {
    width: 40px;
    height: 40px;
}

/* Медиа-запросы для кнопки-ссылки */
@media (max-width: 768px) {
    .button-link {
        padding: 12px 16px;
        gap: 10px;
        height: 50px;
    }
    
    .button-text {
        font-size: 24px;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
    }
    
    .button-arrow {
        width: 40px;
        height: 40px;
    }
    
    .button-arrow svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .button-link {
        padding: 10px 12px;
        gap: 8px;
        height: 44px;
    }
    
    .button-text {
        font-size: 18px;
    }
    
    .icon-image {
        width: 32px;
        height: 32px;
    }
    
    .button-arrow {
        width: 32px;
        height: 32px;
    }
    
    .button-arrow svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .button-link {
        padding: 8px 10px;
        gap: 6px;
        height: 40px;
    }
    
    .button-text {
        font-size: 16px;
    }
    
    .icon-image {
        width: 28px;
        height: 28px;
    }
    
    .button-arrow {
        width: 28px;
        height: 28px;
    }
    
    .button-arrow svg {
        width: 20px;
        height: 20px;
    }
}

